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

The Persistent Type Has No Primary Key Specified

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 warning occurs when a persistent type mapped to a view has no primary key specified, e.g. when you import views from the database. Telerik Data Access always needs to associate its persistent types with a primary key.

Solution

To resolve this warning, select the property you want to be a primary key, and in the Properties pane set Identity to True.

If you prefer to use the Validation Dialog, double-click the warning in the Error List pane. In the Validation Dialog, specify the primary key.

Further References