79774674

Date: 2025-09-25 10:19:28
Score: 1
Natty:
Report link

use ReplaceItemAsync + _etag

ItemRequestOptions options = new ItemRequestOptions
{
    IfMatchEtag = doc._etag
};

await container.ReplaceItemAsync(
    item: updatedDoc,
    id: updatedDoc.id,
    partitionKey: new PartitionKey(updatedDoc.pk),
    requestOptions: options);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Алексей Делобоско