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 error occurs when a persistent type mapped to a table has no primary key specified. Telerik Data Access always needs to associate its persistent types with a primary key.

Solution

To resolve this error, 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 error in the Error List pane. In the Validation Dialog, specify the primary key.

Further References