Skip to content

ExecuteUpdate: Add SetProperty overload that accepts a value directly (no lambda) #28968

@aradalvand

Description

@aradalvand

I originally asked this question here but couldn't get a response, so I figured maybe I should create an issue for it. It's about the new ExecuteUpdate feature.

I noticed that the SetProperty method doesn't accept an actual value (a string literal, for example) as its second argument, only an expression, so you'd have to do:

.SetProperty(p => p.Name, _ => "Shay")

Instead of just:

.SetProperty(p => p.Name, "Shay")

Is there a particular reason behind this?! Why don't you just allow simple values?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions