Azure Cosmos provider for Entity Framework Core.
$ dotnet add package Microsoft.EntityFrameworkCore.CosmosMicrosoft.EntityFrameworkCore.Cosmos is the EF Core database provider package for Azure Cosmos DB.
Call the UseCosmos method to choose the Azure Cosmos DB database provider for your DbContext. For example:
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseCosmos(
"https://localhost:8081",
"C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==",
databaseName: "OrdersDB");
See Getting started with EF Core for more information about EF NuGet packages, including which to install when getting started.
See EF Core Azure Cosmos DB Provider for more information about the features of this database provider.
If you encounter a bug or issues with this package,you can open an Github issue. For more details, see getting support.