Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. string udfId = "Tax";
  2. var udfTax = new UserDefinedFunction
  3. {
  4. Id = udfId,
  5. Body = {...your udf function body},
  6. };
  7.  
  8. Uri containerUri = UriFactory.CreateDocumentCollectionUri("myDatabase", "myContainer");
  9. await client.CreateUserDefinedFunctionAsync(containerUri, udfTax);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement