Amir Brand
Amir Brand

Reputation: 313

Update SQL record without retrieving from the database

I'm using LINQ to SQL. I have an object with an ID property and I want to update it on the database. The object is outside the context. I don't want to get the object again from the DB and then go over all the properties one by one and update them. Can I do that? How?

Upvotes: 1

Views: 173

Answers (1)

Andrii Startsev
Andrii Startsev

Reputation: 767

Use Table.Attach Method.

Upvotes: 1

Related Questions