What I want to achieve is the simple sql query: UPDATE TABLE SET COLUMN = COLUMN + 1
Is there a way to make it happen without loading all records (t
Here is the solution. You can use the following code:
context.Table.Where(x => x.Field1 > 0).Update(y => new Table { Field2 = y.Field2 + 1 });
hope that it helps.