efcore icon indicating copy to clipboard operation
efcore copied to clipboard

ExecuteUpdate: Add SetProperty overload that accepts a property name or property info directly (no lambda)

Open stanvanrooy opened this issue 3 years ago • 0 comments

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");

stanvanrooy avatar Jan 26 '23 14:01 stanvanrooy