Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit ac7017f

Browse files
author
Sidney Andrews
authored
Merge pull request #252 from LukasVice/lab04-fix-solutions-serverless-cosmos
Lab 04: Fix solution according to issue #250 with serverless cosmos
2 parents 9fb18f7 + f318403 commit ac7017f

File tree

1 file changed

+2
-3
lines changed
  • Allfiles/Labs/04/Solution/AdventureWorks/AdventureWorks.Migrate

1 file changed

+2
-3
lines changed

Allfiles/Labs/04/Solution/AdventureWorks/AdventureWorks.Migrate/Program.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ public static async Task Main(string[] args)
2929
Database database = await client.CreateDatabaseIfNotExistsAsync("Retail");
3030

3131
Container container = await database.CreateContainerIfNotExistsAsync("Online",
32-
partitionKeyPath: $"/{nameof(Model.Category)}",
33-
throughput: 1000
32+
partitionKeyPath: $"/{nameof(Model.Category)}"
3433
);
3534

3635
int count = 0;
@@ -42,4 +41,4 @@ public static async Task Main(string[] args)
4241

4342
await Console.Out.WriteLineAsync($"Total Azure Cosmos DB Documents: {count}");
4443
}
45-
}
44+
}

0 commit comments

Comments
 (0)