Reputation: 3852
I want to update a single field in my table for a particular row. I am using Entity Framework 4 and Visual Studio 2010.
Options I can think of are:
I am not aware of any more efficient method to perform this task.
[EDIT]
I would like to do the update in the same operation as the Get for that row, so that it is done in one DB call.
Upvotes: 0
Views: 758
Reputation: 126587
No need to complicate things. Just change the one property and SaveChanges
. Unless you're doing something odd, that should only change the one column. Look at the SQL to verify.
Upvotes: 1