Azure / azure-cosmos-dotnet-v3

.NET SDK for Azure Cosmos DB for the core SQL API
MIT License
723 stars 477 forks source link

Query: Adds DOCUMENTID extension method for LINQ #4489

Closed leminh98 closed 3 weeks ago

leminh98 commented 1 month ago

Pull Request Template

Description

This PR adds the extension method to support the documentId system function in LINQ

Usage: linqQuery.Select(x => x.DocumentId())

Type of change

Please delete options that are not relevant.

Closing issues

To automatically close an issue: closes #2607

adityasa commented 1 month ago

Please include test coverage.