Last active
June 18, 2019 07:20
-
-
Save sajeetharan/80c87e46cf2969eb11c3c4971f6759ac to your computer and use it in GitHub Desktop.
Get self link cosmosdb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string selfLink = client.CreateDocumentCollectionQuery(UriFactory.CreateDatabaseUri(config["CosmosDB_DatabaseId"])) | |
.Where(c => c.Id == config["CosmosDB_ContainerId"]) | |
.AsEnumerable() | |
.FirstOrDefault() | |
.SelfLink; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment