This question is locked. New answers and comments are not allowed.
Hi All
| private void Method (MyObj persistentObj) |
| { |
| scope.Transaction.Begin(); |
| scope.Remove(persistentObj); |
| MyObj objNew = new MyObj {a = persistentObj.a, b = persistentObj.b}; |
| scope.Add(obj); |
| scope.Transaction.Commit(); |
| } |
Here, in a DB at first there will be create a new object (objNew), then the old will be remove (persistentObj).
Can I to change this order?
Thanks