Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow for custom setters in ExecuteUpdate #36836

@roji

Description

@roji

We currently support a fixed set of things in ExecuteUpdate setters - regular columns, table-splitting complex types, JSON scalar properties, JSON complex types. It's impossible for providers to add support for their own setter types.

This is specifically a problem for PostgreSQL in npgsql/efcore.pg#3622, where scalar collections are mapped to PG arrays, which require special handling:

context.Blogs.ExecuteUpdateAsync(s => s.SetProperty(b => b.Tags[0], "foo")

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions