2

In datatables with ADO.NET an updatecommand updates full row.That means that even if you change 1 cell all collumns of the row would be updated... This is not the problem always.
However although reading from msdn i couldnt find whether this this true for Entity Framework. Updating a property would create a full update sql query or only for the column ?

GorillaApe
  • 3,509
  • 9
  • 59
  • 104

2 Answers2

1

According to this tested and verified answer How to update only one field using Entity Framework? only updated fields are updated in sql not the entire object.

Community
  • 1
  • 1
Muhammad Hasan Khan
  • 33,784
  • 16
  • 85
  • 129
0

Hasan is correct, only changed fields are updated and this is easy to confirm by tracing the SQL in the SQL Profiler (or equivalent tool)

E.J. Brennan
  • 43,955
  • 6
  • 83
  • 111