multiple values in discriminator field

3 posts, 0 answers
  1. Andreas
    Andreas avatar
    4 posts
    Member since:
    Jun 2011

    Posted 15 Apr 2013 Link to this post

    Is it possible to use more than one value in the discriminator field for inheritance?
    So if the value in the discriminator field is "a" or "b" the object type is "Type_A", if the value is "c" the type is "Type_B".

    Thanks for information.
  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 16 Apr 2013 Link to this post

    Hi Andreas,

    I am afraid that such scenarios are not supported by OpenAccess - a class could have only one discriminator value. You could try using a dummy derived type with no additional properties, which is marked with the second discriminator value.

    Greetings,
    Alexander
    the Telerik team
    Using Encrypted Connection Strings with Telerik OpenAccess ORM. Read our latest blog article >>
  3. DevCraft banner
  4. Andreas
    Andreas avatar
    4 posts
    Member since:
    Jun 2011

    Posted 17 Apr 2013 Link to this post

    Ok, thank you for support.
Back to Top