Hi;
How can I detect only changed records in the seperated forms with mdi application?
I’m using one PM.
Each order record can editing with releated records (order details) in the seperated forms at the same time, but I want detect to changed record in the current order entry form.
Sample Code :
EntityList<Entity> saveList = new EntityList<Entity>();
EntityList<OrderDetail> mChangedEmployee = new EntityList<OrderDetail>();
mChangedEmployee.ReplaceRange(mPersMgr.GetEntities<OrderDetail>(DataRowState.Modified));
mChangedEmployee.AddRange(mPersMgr.GetEntities<OrderDetail>(DataRowState.Added));
mChangedEmployee.AddRange(mPersMgr.GetEntities<OrderDetail>(DataRowState.Deleted));
foreach (Entity mChanged in mChangedEmployee)
{
saveList.Add(mChanged);
}
mPersMgr.SaveChanges(saveList);
But I think , this sample code getting all record to the opening all order entry forms.
Best Regards
Ertürk ÇEVİK