Specifies the discriminator values associated with a type in a type family that has TypeDiscriminator type identity. One or more discriminator values can identify the same type.
or
The <Discriminator> element can be used to specify the discriminator values that determine the dynamic type of instances of the type by associating the discriminator-values to the type. The values have to be unique within the type family. Assigning a discriminator-value to more than one type in the type family of type is invalid.
discriminator-value can be any literal which can be converted to the type of the discriminator property by using the Convert.ChangeType method. No quotation is needed for string values. If the type of discriminator property is an enum type, the identifier of the enum values can be used to specify the discriminator-value.
Specifies the type discriminator as an integer.
<Type name="Employee">
<TypeDiscriminator memberName="TypeId" />
<Discriminator value="0" />
...
</Type>
Specifies the type discriminator as an enum value.
<Type name="Employee">
<TypeDiscriminator memberName="TypeId" />
<Discriminator value="Employee" />
...
</Type>
Specifies more type discriminator values for the type. Here both 0 and 2 refer to the instances
of type Employee.
<Type name="Employee">
<TypeDiscriminator memberName="TypeId" />
<Discriminator>
<Value>0</Value>
<Value>2</Value>
</Discriminator>
...
</Type>
Type: TechTalk.Genome.Mapping.DiscriminatorXmlData
Assembly: TechTalk.Genome.dll
Version: 4.2.4
Editions: Professional, Evaluation, Express
Database Platforms: Microsoft SQL Server 2000, Microsoft SQL Server 2005, Oracle 9i Release 2, Oracle 10g Release 2
Type Identity Providers | <TypeDiscriminator> Element