Data Access has been discontinued. Please refer to this page for more information.

When an Identity Mechanism using the key generator is chosen in a composite primary key there must be an Identity Mechanism Member specified for the persistent type.

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 class in the domain model uses Identity Mechanism different from Default but it does not have a Identity Mechanism Member specified.

Solution

To resolve this error you can either select which one of the primary key members will use the Autoinc key generator, or set the Identity Mechanism of the class to default.

To select which primary key member will use the Autoinc key generator:

  • Double-click the error to open the Validation Dialog.
  • Choose the Select one of the primary key members which will use the Autoinc key generator option.
  • Select a primary key member from the drop-down list.

  • Click the Fix Selected button.

To set the Identity Mechanism of the class to default:

  • Double-click the error to open the Validation Dialog.
  • Select the Set the identity mechanism of the class to default option.

  • Click the Fix Selected button.

Further References