Main method to create the Azure Cosmos DB database, create and query Book objects
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
static async Task Main(string[] args) | |
{ | |
ConfigureServices(); | |
var service = Container.GetRequiredService<BooksService>(); | |
await service.CreateTheDatabaseAsync(); | |
await service.WriteBooksAsync(); | |
service.ReadBooks(); | |
Console.WriteLine("completed"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment