The Discriminator Column Of The Persistent Type Is Set But The Table Is Not.

This article is relevant to entity models that utilize the deprecated Visual Studio integration of Telerik Data Access. The current documentation of the Data Access framework is available here.

This error occurs when a persistent type is not mapped to a table but there is discriminator column specified at the same time.

Solution

To resolve this error, either remove the discriminator column or map the persistent class to the discriminator column's table.

To remove the discriminator column:

  1. Double-click the error to open the Validation Dialog.
  2. Apply the automatic fix for removing the discriminator column.

To map the persistent class to the discriminator column's table:

  1. Double-click the warning to open the Validation Dialog.
  2. Apply the automatic fix for mapping the persistent type.

  3. In the Visual Designer, open the Mapping Details Editor.

  4. Manually set the property - to - column mapping for the table.

Further References