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; }
}
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: