Skip to content

Support updating an element in an array with ExecuteUpdate #3622

@roji

Description

@roji

We currently don't support the following:

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

The reason is that b.Tags[0] translates to the PostgreSQL-specific PgArrayIndexExpression, and the ExecuteUpdate logic for handling setters isn't sufficiently open (see dotnet/efcore#36836).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions