This is my product Class:
public class Product : XPLiteObject
{
public string productId {get;set;}
}
i use Gridview to control Data. When i delete a row with productId = "id-5";
gridview1.deleteSelectedRows();
then Add new row with productId = "id-5"; (same id i was deleted)
Finally i comit;
unitOfWork1.CommitChanges();
And exception recieved: A dupplicate key found !