This is from one of my developers:
There is the problem in generation entity class for entity that has composite primary key.
There are now constructors that have as parameters all fields of primary key in this case.
But most annoying thing that Delete() method of generated class Delete more than one entity from BD,
more precisely, all entities, that have in its keys field same value, as in deleted entity.
Example:
Table called SubTypeSubscription
ClientID (int PK, not null)
TypeID (int PK, not null)
Rows in table:
ClientId TypeID
1 2
1 22
1 345
Code:
int clientId;
SubTypeSubscription subscription = new SubTypeSubscription(clientId);
Subscription.Delete();
Execution of this code delete all rows in table SubTypeSubscription.