I have a issue with updating records within the same context.
Ex scenario is as follows.
I have a Data entry from and add one record from it. Insert is happens withing transaction scope.
I add record from the same form and try to change the values. it dosnt work. When I see the object state it is unchanged even property value is changed.
updates will work correctly after I restart the app开发者_JS百科lication and change the values. After that all changes affecting correctly.
This happens only the records inserted withing the context.
SaveChages() is called without any Parameter.
Any body has idea about this issue ?
DineshNS
Can you try this:
ObjectContext.ApplyCurrentValues("EntitySetName", currentEntity);
Eg: ObjectContext.ApplyCurrentValues("Orders", Order);
精彩评论