Microsoft.EntityFrameworkCore.Cosmos
10.0.0-preview.4.25255.103
Prefix Reserved
See the version list below for details.
Requires NuGet 3.6 or higher.
dotnet add package Microsoft.EntityFrameworkCore.Cosmos --version 10.0.0-preview.4.25255.103
NuGet\Install-Package Microsoft.EntityFrameworkCore.Cosmos -Version 10.0.0-preview.4.25255.103
<PackageReference Include="Microsoft.EntityFrameworkCore.Cosmos" Version="10.0.0-preview.4.25255.103" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Cosmos" Version="10.0.0-preview.4.25255.103" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Cosmos" />
paket add Microsoft.EntityFrameworkCore.Cosmos --version 10.0.0-preview.4.25255.103
#r "nuget: Microsoft.EntityFrameworkCore.Cosmos, 10.0.0-preview.4.25255.103"
#addin nuget:?package=Microsoft.EntityFrameworkCore.Cosmos&version=10.0.0-preview.4.25255.103&prerelease
#tool nuget:?package=Microsoft.EntityFrameworkCore.Cosmos&version=10.0.0-preview.4.25255.103&prerelease
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.49.0-preview.0)
- Microsoft.EntityFrameworkCore (>= 10.0.0-preview.4.25255.103)
- Microsoft.Extensions.Caching.Memory (>= 10.0.0-preview.4.25255.103)
- Microsoft.Extensions.Logging (>= 10.0.0-preview.4.25255.103)
- Newtonsoft.JSON (>= 13.0.3)
GitHub repositories (9)
Showing the top 9 popular GitHub repositories that depend on Microsoft.EntityFrameworkCore.Cosmos:
Repository | Stars |
---|---|
dotnet/aspire
Tools, templates, and packages to accelerate building observable, production-ready apps
|
|
masastack/MASA.Framework
.NET next-generation microservice development framework, which provides cloud native best practices based on Dapr.
|
|
Jcparkyn/nodexr
Graphical regular expression editor
|
|
JonPSmith/EfCore.TestSupport
Tools for helping in unit testing applications that use Entity Framework Core
|
|
okyrylchuk/dotnet6_features
|
|
ProfessionalCSharp/ProfessionalCSharp2021
Source code for Professional C# and .NET 2021 Edition (with updates for C# 11 and .NET 7)
|
|
ProfessionalCSharp/MoreSamples
Additional code samples the book series Professional C#, Wrox Press
|
|
microsoft/TailwindTraders-Backend
Tailwind Traders Backend Services
|
|
Azure/azure-mobile-apps
Build better mobile applications using Azure Mobile Apps
|
Version | Downloads | Last updated |
---|---|---|
10.0.0-preview.5.25280.105 | 0 | 6/2/2025 |
10.0.0-preview.5.25277.114 | 0 | 6/3/2025 |
10.0.0-preview.5.25277.101 | 0 | 5/29/2025 |
10.0.0-preview.4.25266.103 | 0 | 5/20/2025 |
10.0.0-preview.4.25255.103 | 0 | 5/12/2025 |
3.0.0-preview.19074.3 | 1 | 1/28/2019 |
3.0.0-preview.18572.1 | 1 | 11/30/2018 |