This example application goes with the article Building a robust CQRS database with EF Core and Cosmos DB.
How to build and run this application
- NET Core 2.2 installed.
- You need SQL Service localhost, e.g.
(localdb)\\mssqllocaldb, which is installed with Visual Studio 2017.
- You need Azure Cosmos DB Emulator for local development and testing installed and running.
- You need to update the authKey in the appsetting.json file to the Primary Key from the running Cosmos DB Emulator
The first time you run the
EfCoreSqlAndCosmos ASP.NET Core application it will create a SQL database called
EfCoreSqlAndCosmos-Sql and a Cosmos DB database called
LocalCosmosDb. It will then proceed to seed them with 55 books.