dotnet / dotnet/efcore

Support ExecuteUpdate inside structural collections mapped to JSON

Open
#36,722 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

```c#
[ConditionalFact]
public virtual async Task Update_inside_structural_collection()
{
var nested = Fixture.Data.RootEntities.Single(e => e.Id == 1).RequiredRelated.NestedCollection[1];
nested.String += " Updated";

await AssertUpdate(
ss => ss.Set().Where(e => e.RequiredRelated.NestedCollection.Count >= 2),
c => c,
s => s.SetProperty(x => x.RequiredRelated.NestedCollection[1], nested),
rowsAffectedCount: 7);
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.