I suggest you ...

Guid TypeId

I would like to create something like
[Serializable]
[HierarchyRoot]
[TypeDiscriminatorValue("4DF9464B-6236-C985-EA06-34F2C8944317")]
public class MyEntity : Entity
{
[Field]
[TypeDiscriminator]
public EntType TypeDesc { get; set; }
...
}

[Serializable]
[TypeDiscriminatorValue("DDAFAAA5-0A63-F9C3-F4FE-119D088D966B")]
public class MyEntityInh : MyEntity
{
...
}

also I have my own entity
[HierarchyRoot]
public class EntType : Entity
{
public EntType(Guid id):base(id)
{
}

[Field,Key]
public Guid Id { get; set; }

[Field]
public string FullName { get; set; }
}

where Id's is TypeId-s, but there are additional Name/Description/something else

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    kl.vlad shared this idea  ·   ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base