Microsoft.EntityFrameworkCore.Cosmos 8.0.7

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 3.6 or higher.

dotnet add package Microsoft.EntityFrameworkCore.Cosmos --version 8.0.7                
NuGet\Install-Package Microsoft.EntityFrameworkCore.Cosmos -Version 8.0.7                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.EntityFrameworkCore.Cosmos" Version="8.0.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.EntityFrameworkCore.Cosmos --version 8.0.7                
#r "nuget: Microsoft.EntityFrameworkCore.Cosmos, 8.0.7"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.EntityFrameworkCore.Cosmos as a Cake Addin
#addin nuget:?package=Microsoft.EntityFrameworkCore.Cosmos&version=8.0.7

// Install Microsoft.EntityFrameworkCore.Cosmos as a Cake Tool
#tool nuget:?package=Microsoft.EntityFrameworkCore.Cosmos&version=8.0.7                

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 Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (45)

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.

AspNetCore.Identity.CosmosDb

A Cosmos DB implementation of ASP.NET Core Identity.

EaCloud.EntityFrameworkCore.Cosmos

Azure Cosmos DB 组件,封装基于 Microsoft.EntityFrameworkCore.Cosmos 的数据访问功能的实现(受限于只能使用SQL类型数据库,不建议使用)。

Celerik.NetCore.Services

Provides a code baseline for .NET Core service-oriented projects including configuration, standard service builder, common enumerations, common exceptions, a standar response model, pagination, resources, base service classes and utilities.

GitHub repositories (10)

Showing the top 5 popular GitHub repositories that depend on Microsoft.EntityFrameworkCore.Cosmos:

Repository Stars
dotnet/aspire
An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
masastack/MASA.Framework
.NET next-generation microservice development framework, which provides cloud native best practices based on Dapr.
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK from source
Jcparkyn/nodexr
Graphical regular expression editor
JonPSmith/EfCore.TestSupport
Tools for helping in unit testing applications that use Entity Framework Core
Version Downloads Last updated
9.0.0-preview.6.24327.4 108 7/9/2024
9.0.0-preview.5.24306.3 288 6/11/2024
9.0.0-preview.4.24267.1 930 5/21/2024
9.0.0-preview.3.24172.4 357 4/11/2024
9.0.0-preview.2.24128.4 167 3/12/2024
9.0.0-preview.1.24081.2 383 2/13/2024
8.0.7 9,511 7/9/2024
8.0.6 60,809 5/28/2024
8.0.5 35,692 5/14/2024
8.0.4 115,140 4/9/2024
8.0.3 105,114 3/12/2024
8.0.2 69,043 2/13/2024
8.0.1 119,501 1/9/2024
8.0.0 145,430 11/14/2023
8.0.0-rc.2.23480.1 3,691 10/10/2023
8.0.0-rc.1.23419.6 3,105 9/12/2023
8.0.0-preview.7.23375.4 679 8/8/2023
8.0.0-preview.6.23329.4 751 7/11/2023
8.0.0-preview.5.23280.1 792 6/13/2023
8.0.0-preview.4.23259.3 788 5/16/2023
8.0.0-preview.3.23174.2 1,344 4/11/2023
8.0.0-preview.2.23128.3 780 3/14/2023
8.0.0-preview.1.23111.4 2,796 2/21/2023
7.0.20 3,193 5/28/2024
7.0.19 1,324 5/14/2024
7.0.18 7,081 4/9/2024
7.0.17 22,648 3/12/2024
7.0.16 10,837 2/13/2024
7.0.15 18,874 1/9/2024
7.0.14 37,238 11/14/2023
7.0.13 85,494 10/24/2023
7.0.12 57,352 10/10/2023
7.0.11 61,972 9/12/2023
7.0.10 66,625 8/8/2023
7.0.9 85,990 7/11/2023
7.0.8 59,318 6/22/2023
7.0.7 19,460 6/13/2023
7.0.5 172,332 4/11/2023
7.0.4 155,560 3/14/2023
7.0.3 72,537 2/14/2023
7.0.2 131,661 1/10/2023
7.0.1 66,546 12/13/2022
7.0.0 87,631 11/7/2022
7.0.0-rc.2.22472.11 2,687 10/11/2022
7.0.0-rc.1.22426.7 1,035 9/14/2022
7.0.0-preview.7.22376.2 1,856 8/9/2022
7.0.0-preview.6.22329.4 583 7/12/2022
7.0.0-preview.5.22302.2 774 6/14/2022
7.0.0-preview.4.22229.2 860 5/10/2022
7.0.0-preview.3.22175.1 519 4/13/2022
7.0.0-preview.2.22153.1 399 3/14/2022
7.0.0-preview.1.22076.6 380 2/17/2022
6.0.32 1,002 7/9/2024
6.0.31 4,860 5/28/2024
6.0.30 1,659 5/14/2024
6.0.29 9,268 4/9/2024
6.0.28 7,811 3/12/2024
6.0.27 9,228 2/13/2024
6.0.26 15,209 1/9/2024
6.0.25 27,587 11/14/2023
6.0.24 14,463 10/24/2023
6.0.23 3,512 10/10/2023
6.0.22 18,746 9/12/2023
6.0.21 29,264 8/8/2023
6.0.20 26,285 7/11/2023
6.0.19 21,808 6/22/2023
6.0.18 6,021 6/13/2023
6.0.16 75,137 4/11/2023
6.0.15 61,272 3/14/2023
6.0.14 64,075 2/14/2023
6.0.13 36,984 1/10/2023
6.0.12 26,235 12/13/2022
6.0.11 77,291 11/7/2022
6.0.10 293,497 10/11/2022
6.0.9 821,025 9/13/2022
6.0.8 241,340 8/9/2022
6.0.7 170,044 7/12/2022
6.0.6 113,134 6/14/2022
6.0.5 175,943 5/10/2022
6.0.4 152,685 4/11/2022
6.0.3 274,897 3/8/2022
6.0.2 139,084 2/8/2022
6.0.1 409,265 12/14/2021
6.0.0 185,429 11/8/2021
6.0.0-rc.2.21480.5 10,702 10/12/2021
6.0.0-rc.1.21452.10 1,868 9/14/2021
6.0.0-preview.7.21378.4 508 8/10/2021
6.0.0-preview.6.21352.1 302 7/14/2021
6.0.0-preview.5.21301.9 4,063 6/15/2021
6.0.0-preview.4.21253.1 1,583 5/24/2021
6.0.0-preview.3.21201.2 815 4/8/2021
6.0.0-preview.2.21154.2 425 3/11/2021
6.0.0-preview.1.21102.2 567 2/12/2021
5.0.17 21,494 5/10/2022
5.0.16 3,701 4/11/2022
5.0.15 7,383 3/8/2022
5.0.14 11,855 2/8/2022
5.0.13 40,868 12/14/2021
5.0.12 18,865 11/7/2021
5.0.11 46,251 10/12/2021
5.0.10 53,228 9/14/2021
5.0.9 47,449 8/10/2021
5.0.8 37,047 7/13/2021
5.0.7 51,079 6/8/2021
5.0.6 48,677 5/11/2021
5.0.5 52,794 4/6/2021
5.0.4 30,743 3/9/2021
5.0.3 52,561 2/9/2021
5.0.2 51,787 1/12/2021
5.0.1 248,914 12/8/2020
5.0.0 42,957 11/9/2020
5.0.0-rc.2.20475.6 3,564 10/13/2020
5.0.0-rc.1.20451.13 2,012 9/14/2020
5.0.0-preview.8.20407.4 381 8/25/2020
5.0.0-preview.7.20365.15 657 7/21/2020
5.0.0-preview.6.20312.4 739 6/25/2020
5.0.0-preview.5.20278.2 2,135 6/10/2020
5.0.0-preview.4.20220.10 1,257 5/18/2020
5.0.0-preview.3.20181.2 3,296 4/23/2020
5.0.0-preview.2.20159.4 4,029 4/2/2020
5.0.0-preview.2.20120.8 3,284 3/16/2020
3.1.32 10,260 12/13/2022
3.1.31 2,100 11/8/2022
3.1.30 644 10/11/2022
3.1.29 1,799 9/13/2022
3.1.28 12,236 8/9/2022
3.1.27 5,181 7/12/2022
3.1.26 2,083 6/14/2022
3.1.25 4,100 5/10/2022
3.1.24 3,266 4/11/2022
3.1.23 28,017 3/8/2022
3.1.22 17,033 12/14/2021
3.1.21 47,634 11/7/2021
3.1.20 7,936 10/11/2021
3.1.19 12,174 9/14/2021
3.1.18 24,437 8/10/2021
3.1.17 26,768 7/13/2021
3.1.16 74,054 6/8/2021
3.1.15 18,363 5/11/2021
3.1.14 9,921 4/6/2021
3.1.13 27,663 3/9/2021
3.1.12 89,034 2/9/2021
3.1.11 33,312 1/12/2021
3.1.10 72,605 11/9/2020
3.1.9 65,468 10/13/2020
3.1.8 90,894 9/8/2020
3.1.7 46,556 8/11/2020
3.1.6 87,126 7/14/2020
3.1.5 46,157 6/9/2020
3.1.4 56,009 5/12/2020
3.1.3 154,384 3/24/2020
3.1.2 56,286 2/19/2020
3.1.1 43,034 1/14/2020
3.1.0 46,909 12/3/2019
3.1.0-preview3.19554.8 1,047 11/13/2019
3.1.0-preview2.19525.5 1,657 11/1/2019
3.1.0-preview1.19506.2 1,150 10/15/2019
3.0.3 1,048 2/19/2020
3.0.2 736 1/14/2020
3.0.1 5,696 11/18/2019
3.0.0 292,424 9/23/2019
3.0.0-rc1.19456.14 704 9/16/2019
3.0.0-preview9.19423.6 643 9/4/2019
3.0.0-preview8.19405.11 4,048 8/13/2019
3.0.0-preview7.19362.6 611 7/23/2019
3.0.0-preview6.19304.10 1,832 6/12/2019
3.0.0-preview5.19227.1 3,354 5/6/2019
3.0.0-preview4.19216.3 1,410 4/18/2019
3.0.0-preview3.19153.1 1,949 3/6/2019
3.0.0-preview.19074.3 1,305 1/29/2019
3.0.0-preview.18572.1 1,233 12/3/2018
2.2.0-preview3-35497 48,424 10/17/2018