-
-
Save johndowns/08d1f5571942e2dc5a4e3ddfdc44c9fd to your computer and use it in GitHub Desktop.
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
var documentClient = new DocumentClient(new Uri("https://youraccount.documents.azure.com:443/"), "yourkey"); | |
var collectionLink = UriFactory.CreateDocumentCollectionUri("Orders", "Orders"); | |
var result = await documentClient.CreateDocumentAsync(collectionLink, documentToInsert, new RequestOptions | |
{ | |
PreTriggerInclude = new List<string> { "validateOrder" }, | |
PostTriggerInclude = new List<string> { "addRefund" } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment