efcore
efcore copied to clipboard
ExecuteUpdate: Add SetProperty overload that accepts a property name or property info directly (no lambda)
I noticed that the SetProperty method doesn't accept an actual property name / PropertyInfo object as its first argument, only an expression.
Because of this, it is currently not possible to make use of the ExecuteUpdate method in dynamic update statements.
Is there a particular reason behind this?
Example:
.SetProperty("Name", p => "value");
instead of
.SetProperty(p => p.Name, p => "value");