How to update single object in sql to linq
Posted
by ebattulga
on Stack Overflow
See other posts from Stack Overflow
or by ebattulga
Published on 2010-03-30T10:33:32Z
Indexed on
2010/03/30
10:43 UTC
Read the original article
Hit count: 576
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?
© Stack Overflow or respective owner