Providing the following code:
Animal a = new Animal { Name = "Rover", Type = "Dog" };
ctx.Animal.InsertOnSubmit(a);
Suppose the previous code is in a method that is called several times. I do not want to represent the same object twice. Can I query DataContextwith help GetChangeSet()to see if this object exists in ChangeSet?
GetChangeSet().Insertreturns IList<object>I draw a space on how to find it.
source
share