From 7ace07da0a8ff1a1efec013fc8b070e152904638 Mon Sep 17 00:00:00 2001 From: Steve Belton Date: Sat, 11 Mar 2017 18:06:05 +0000 Subject: [PATCH] Updated to fix issue with creating Database and DocumentCollection Updated to match changes accepted in tutorial documentation :-) --- src/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Program.cs b/src/Program.cs index 983188f..1d2f848 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -83,9 +83,9 @@ private async Task GetStartedDemo() // Create a new instance of the DocumentClient this.client = new DocumentClient(new Uri(EndpointUrl), AuthorizationKey); - await this.CreateDatabaseIfNotExists("FamilyDB"); - - await this.CreateDocumentCollectionIfNotExists("FamilyDB", "FamilyCollection"); + await this.client.CreateDatabaseIfNotExistsAsync(new Database { Id = "FamilyDB_oa" }); + + await this.client.CreateDocumentCollectionIfNotExistsAsync(UriFactory.CreateDatabaseUri("FamilyDB_oa"), new DocumentCollection { Id = "FamilyCollection_oa" }); // Insert a document, here we create a Family object Family andersenFamily = new Family