Hi !
i have a situation when i cant just update original record in database, but instead make a new record, copy all fields from old and apply changes to new one. (something like this if translated to code)
var original = from _orig in context.Test where _orig.id == 5 select _orig;
Test newTest = new Test();
newTest = original;
newTest.id = 0;
context.Test.InsertOnSubmit(newTest);
context.SubmitChanges();
original.parent_id = newTest.id;
original.isActive = 0;
which gives an exception like this one : Cannot add an entity that already exists.
is it possible to make it work without manually copying every field?
Thank You!