dotnet / dotnet/efcore

Cosmos: ReadItem should be used for Reload

Open
#33,893 1 comment 2 reactions 0 assignees View on GitHub
area-change-tracking area-cosmos area-query
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Same repro code as for #33881. Do:

```C#
await context.Entry(x).ReloadAsync();
```
This could be a ReadItem, but is actually:

```sql
SELECT VALUE {"Id" : c["Id"], "Discriminator" : c["Discriminator"], "Title" : c["Title"], "id0" : c["id"], "" : c}
FROM root c
WHERE ((c["Discriminator"] = "Post") AND (c["Id"] = @__p_0))
OFFSET 0 LIMIT 1
```

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.