For example
a = datacontext.customers.FirstOrDefaul();
b = datacontext.customers.Skip(1).FirstOrDefaul();
a.name="name1";
b.Name="name2";
When i call datacontext.SubmitChanges(), Two object updated. I don't want this.
I need only Update a
object. How do it?
EDIT
WPFWindow windowA=new WPFWINDOW()
windowA.DataContext=a;
windowA.Show();
WPFWindow windowB=new WPFWINDOW()
windowB.DataContext=b;
windowB.Show();
When clicking save button from window, corresponding object saving.
When clicking cancel button, corresponding object not saved