I have a sql table called UserDashboard with column called UserID and is defined as a PK. I generate the entity classes and the UserDashboardEntity.vb class is created. When I call the following, i get an error that
Dim dataAccessAdapter As New DataAccessAdapter
Dim userID As Integer = Owner.GetUserID
Dim UserDashboard As New UserDashboardEntity(Convert.ToInt32(userID))
error occurs here --> dataAccessAdapter.FetchEntity(UserDashboard)
Error message
The entity 'UserDashboardEntity' doesn't have a PK defined, and FetchEntity therefore can't create a query to fetch it. Please define a PK on the entity
version info for SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll
is
2.5.8.328