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

The Key Generator Of The Persistent Type Is Incompatible With The Identity Field 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 the key generator of the persistent type is incompatible with the identity field type. For example, the persistent class has a composite primary key and the key generator is set to Database Server Calculated (Autoinc).

Solution

To resolve this error, change either the key generator the persistent class or the identity type.

To change the key generator:

  1. In the Visual Designer, select the domain class.
  2. Press F4 to open the Properties pane.
  3. Change the Identity Mechanism property.

To change the identity type:

  1. In the Visual Designer, select the domain class.
  2. Specify a single property as a primary key.

Further References