Microsoft.EntityFrameworkCore.Cosmos
10.0.2
Prefix Reserved
See the version list below for details.
Requires NuGet 3.6 or higher.
dotnet add package Microsoft.EntityFrameworkCore.Cosmos --version 10.0.2
NuGet\Install-Package Microsoft.EntityFrameworkCore.Cosmos -Version 10.0.2
<PackageReference Include="Microsoft.EntityFrameworkCore.Cosmos" Version="10.0.2" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Cosmos" Version="10.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Cosmos" />
paket add Microsoft.EntityFrameworkCore.Cosmos --version 10.0.2
#r "nuget: Microsoft.EntityFrameworkCore.Cosmos, 10.0.2"
#:package Microsoft.EntityFrameworkCore.Cosmos@10.0.2
#addin nuget:?package=Microsoft.EntityFrameworkCore.Cosmos&version=10.0.2
#tool nuget:?package=Microsoft.EntityFrameworkCore.Cosmos&version=10.0.2
Microsoft.EntityFrameworkCore.Cosmos is the EF Core database provider package for Azure Cosmos DB.
Usage
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");
Getting started with EF Core
See Getting started with EF Core for more information about EF NuGet packages, including which to install when getting started.
Additional documentation
See Microsoft SQL Server EF Core Database Provider for more information about the features of this database provider.
Feedback
If you encounter a bug or issues with this package,you can open an Github issue. For more details, see getting support.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Azure.Cosmos (>= 3.51.0)
- Microsoft.EntityFrameworkCore (>= 10.0.2)
- Microsoft.Extensions.Caching.Memory (>= 10.0.2)
- Microsoft.Extensions.Logging (>= 10.0.2)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (56)
Showing the top 5 NuGet packages that depend on Microsoft.EntityFrameworkCore.Cosmos:
| Package | Downloads |
|---|---|
|
Service.Extensions.EntityFramework.Cosmos
Extensions to provide consistent configurations and patterns for your service. |
|
|
EntityFrameworkCore.Initialization
Extension methods which allow each DbContext to be initialized & destroyed independently based on its Model. |
|
|
Aspire.Microsoft.EntityFrameworkCore.Cosmos
A Microsoft Azure Cosmos DB provider for Entity Framework Core that integrates with Aspire, including connection pooling, logging, and telemetry. |
|
|
BridgingIT.DevKit.Infrastructure.EntityFramework.Cosmos
bITdevKit: Empowering developers with modular components for modern application development, centered around Domain-Driven Design principles. Our goal is to empower developers by offering modular components that can be easily integrated into your projects. Whether you're working with repositories, commands, queries, or other components, the bITDevKit provides flexible solutions that can adapt to your specific needs. |
|
|
AspNetCore.Identity.CosmosDb
.NET 10 ASP.NET Core Identity provider for Azure Cosmos DB with EF Core Cosmos support for users, roles, claims, tokens, external logins, and passkeys. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-preview.3.26207.106 | 91 | 4/14/2026 |
| 11.0.0-preview.2.26159.112 | 180 | 3/10/2026 |
| 11.0.0-preview.1.26104.118 | 125 | 2/10/2026 |
| 10.0.7 | 3,957 | 4/21/2026 |
| 10.0.6 | 8,208 | 4/14/2026 |
| 10.0.5 | 52,343 | 3/12/2026 |
| 10.0.4 | 2,747 | 3/10/2026 |
| 10.0.3 | 60,350 | 2/10/2026 |
| 10.0.2 | 82,349 | 1/13/2026 |
| 10.0.1 | 86,949 | 12/9/2025 |
| 10.0.0 | 80,574 | 11/11/2025 |
| 9.0.15 | 845 | 4/14/2026 |
| 9.0.14 | 9,394 | 3/10/2026 |
| 9.0.13 | 12,523 | 2/10/2026 |
| 9.0.12 | 27,664 | 1/13/2026 |
| 9.0.11 | 69,446 | 11/11/2025 |
| 8.0.26 | 648 | 4/14/2026 |
| 8.0.25 | 6,730 | 3/10/2026 |
| 8.0.24 | 8,820 | 2/10/2026 |
| 8.0.23 | 28,820 | 1/13/2026 |