This is a migrated thread and some comments may be shown as answers.

multiple values in discriminator field

2 Answers 54 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andreas
Top achievements
Rank 1
Andreas asked on 15 Apr 2013, 06:13 PM
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 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 16 Apr 2013, 07:33 AM
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 >>
0
Andreas
Top achievements
Rank 1
answered on 17 Apr 2013, 09:59 AM
Ok, thank you for support.
Tags
Development (API, general questions)
Asked by
Andreas
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Andreas
Top achievements
Rank 1
Share this question
or