You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is one or more entities without a primary key then the rest of the entities break on tracking:
Initialization method Dashing.Repository.Tests.CRUDTests.Test_Initialize threw exception. System.InvalidCastException: System.InvalidCastException: Unable to cast object of type 'Dashing.Model.Product' to type 'Dashing.CodeGeneration.ITrackedEntity'..
To reproduce add this class to TestDomain:
public class NoPrimary {
public virtual string Name { get; set; }
}
The text was updated successfully, but these errors were encountered:
I used a T4 template to build all of my POCOs from an existing database. To get the POCOs with primary keys to work; I will need to delete all POCOs without primary keys.
If there is one or more entities without a primary key then the rest of the entities break on tracking:
To reproduce add this class to TestDomain:
The text was updated successfully, but these errors were encountered: