Microsoft.EntityFrameworkCore.SqlServer 9.0.0

Prefix Reserved

Requires NuGet 3.6 or higher.

dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 9.0.0                
NuGet\Install-Package Microsoft.EntityFrameworkCore.SqlServer -Version 9.0.0                
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.SqlServer" Version="9.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.EntityFrameworkCore.SqlServer --version 9.0.0                
#r "nuget: Microsoft.EntityFrameworkCore.SqlServer, 9.0.0"                
#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.SqlServer as a Cake Addin
#addin nuget:?package=Microsoft.EntityFrameworkCore.SqlServer&version=9.0.0

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

Microsoft.EntityFrameworkCore.SqlServer is the EF Core database provider package for Microsoft SQL Server and Azure SQL.

Usage

Call the UseSqlServer method to choose the SQL Server/Azure SQL database provider for your DbContext. For example:

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
    optionsBuilder.UseSqlServer("Server=(localdb)\\mssqllocaldb;Database=MyDatabase;Trusted_Connection=True;");
}

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 (3.5K)

Showing the top 5 NuGet packages that depend on Microsoft.EntityFrameworkCore.SqlServer:

Package Downloads
Microsoft.AspNetCore.App

Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.

Microsoft.AspNetCore.All

Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.

Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite

NetTopologySuite support for the Microsoft SQL Server database provider for Entity Framework Core.

EntityFrameworkCore.SqlServer.HierarchyId

Adds hierarchyid support to the SQL Server EF Core provider

Microsoft.EntityFrameworkCore.SqlServer.Design

Design-time Entity Framework Core Functionality for Microsoft SQL Server.

GitHub repositories (606)

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

Repository Stars
dotnet/aspnetcore
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
DapperLib/Dapper
Dapper - a simple object mapper for .Net
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
ardalis/CleanArchitecture
Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core
Version Downloads Last updated
9.0.0 1,318,969 11/12/2024
9.0.0-rc.2.24474.1 55,644 10/8/2024
9.0.0-rc.1.24451.1 41,059 9/10/2024
9.0.0-preview.7.24405.3 24,495 8/13/2024
9.0.0-preview.6.24327.4 58,401 7/9/2024
9.0.0-preview.5.24306.3 20,152 6/11/2024
9.0.0-preview.4.24267.1 31,980 5/21/2024
9.0.0-preview.3.24172.4 32,604 4/11/2024
9.0.0-preview.2.24128.4 23,889 3/12/2024
9.0.0-preview.1.24081.2 22,894 2/13/2024
8.0.11 1,378,518 11/12/2024
8.0.10 4,758,423 10/8/2024
8.0.8 8,610,508 8/13/2024
8.0.7 5,617,507 7/9/2024
8.0.6 6,875,142 5/28/2024
8.0.5 3,096,760 5/14/2024
8.0.4 7,246,397 4/9/2024
8.0.3 4,914,922 3/12/2024
8.0.2 6,066,253 2/13/2024
8.0.1 5,917,921 1/9/2024
8.0.0 8,405,914 11/14/2023
8.0.0-rc.2.23480.1 99,078 10/10/2023
8.0.0-rc.1.23419.6 62,241 9/12/2023
8.0.0-preview.7.23375.4 41,166 8/8/2023
8.0.0-preview.6.23329.4 65,828 7/11/2023
8.0.0-preview.5.23280.1 53,736 6/13/2023
8.0.0-preview.4.23259.3 41,323 5/16/2023
8.0.0-preview.3.23174.2 61,902 4/11/2023
8.0.0-preview.2.23128.3 129,925 3/14/2023
8.0.0-preview.1.23111.4 38,398 2/21/2023
7.0.20 1,079,032 5/28/2024
7.0.19 196,938 5/14/2024
7.0.18 593,958 4/9/2024
7.0.17 832,135 3/12/2024
7.0.16 886,076 2/13/2024
7.0.15 1,452,764 1/9/2024
7.0.14 2,646,783 11/14/2023
7.0.13 3,189,454 10/24/2023
7.0.12 1,956,545 10/10/2023
7.0.11 4,379,242 9/12/2023
7.0.10 4,913,713 8/8/2023
7.0.9 3,948,851 7/11/2023
7.0.8 2,526,707 6/22/2023
7.0.7 2,244,373 6/13/2023
7.0.5 10,138,439 4/11/2023
7.0.4 4,165,047 3/14/2023
7.0.3 5,271,225 2/14/2023
7.0.2 5,960,606 1/10/2023
7.0.1 3,539,037 12/13/2022
7.0.0 8,442,167 11/7/2022
7.0.0-rc.2.22472.11 101,754 10/11/2022
7.0.0-rc.1.22426.7 132,659 9/14/2022
7.0.0-preview.7.22376.2 33,306 8/9/2022
7.0.0-preview.6.22329.4 34,110 7/12/2022
7.0.0-preview.5.22302.2 25,350 6/14/2022
7.0.0-preview.4.22229.2 31,197 5/10/2022
7.0.0-preview.3.22175.1 46,787 4/13/2022
7.0.0-preview.2.22153.1 21,915 3/14/2022
7.0.0-preview.1.22076.6 25,330 2/17/2022
6.0.36 107,590 11/12/2024
6.0.35 187,620 10/8/2024
6.0.33 382,874 8/13/2024
6.0.32 313,279 7/9/2024
6.0.31 450,993 5/28/2024
6.0.30 194,491 5/14/2024
6.0.29 654,208 4/9/2024
6.0.28 640,759 3/12/2024
6.0.27 867,012 2/13/2024
6.0.26 1,334,251 1/9/2024
6.0.25 1,764,788 11/14/2023
6.0.24 922,611 10/24/2023
6.0.23 607,706 10/10/2023
6.0.22 1,249,599 9/12/2023
6.0.21 1,719,231 8/8/2023
6.0.20 1,452,673 7/11/2023
6.0.19 1,556,962 6/22/2023
6.0.18 584,924 6/13/2023
6.0.16 3,871,990 4/11/2023
6.0.15 2,214,998 3/14/2023
6.0.14 2,393,634 2/14/2023
6.0.13 3,952,905 1/10/2023
6.0.12 2,775,549 12/13/2022
6.0.11 5,382,743 11/7/2022
6.0.10 8,958,536 10/11/2022
6.0.9 8,353,096 9/13/2022
6.0.8 9,103,532 8/9/2022
6.0.7 8,465,697 7/12/2022
6.0.6 6,478,404 6/14/2022
6.0.5 9,279,047 5/10/2022
6.0.4 6,641,449 4/11/2022
6.0.3 8,919,990 3/8/2022
6.0.2 6,946,661 2/8/2022
6.0.1 16,059,990 12/14/2021
6.0.0 15,033,925 11/8/2021
6.0.0-rc.2.21480.5 134,279 10/12/2021
6.0.0-rc.1.21452.10 65,583 9/14/2021
6.0.0-preview.7.21378.4 37,560 8/10/2021
6.0.0-preview.6.21352.1 22,036 7/14/2021
6.0.0-preview.5.21301.9 91,722 6/15/2021
6.0.0-preview.4.21253.1 23,934 5/24/2021
6.0.0-preview.3.21201.2 45,929 4/8/2021
6.0.0-preview.2.21154.2 21,163 3/11/2021
6.0.0-preview.1.21102.2 51,585 2/12/2021
5.0.17 3,235,314 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 847,088 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 1,025,896 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 851,503 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 2,067,523 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 2,368,503 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 4,129,524 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 4,625,291 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 4,685,789 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 4,898,126 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 5,515,272 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 4,099,641 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 5,381,197 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 3,759,153 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 4,165,020 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 4,044,610 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 3,780,675 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 6,601,277 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 123,372 10/13/2020
5.0.0-rc.1.20451.13 127,458 9/14/2020
5.0.0-preview.8.20407.4 53,492 8/25/2020
5.0.0-preview.7.20365.15 47,125 7/21/2020
5.0.0-preview.6.20312.4 42,245 6/25/2020
5.0.0-preview.5.20278.2 31,408 6/10/2020
5.0.0-preview.4.20220.10 45,496 5/18/2020
5.0.0-preview.3.20181.2 51,607 4/23/2020
5.0.0-preview.2.20159.4 27,332 4/2/2020
5.0.0-preview.2.20120.8 23,493 3/16/2020
3.1.32 3,014,513 12/13/2022
3.1.31 751,869 11/8/2022
3.1.30 346,072 10/11/2022
3.1.29 865,235 9/13/2022
3.1.28 538,758 8/9/2022
3.1.27 430,481 7/12/2022
3.1.26 333,512 6/14/2022
3.1.25 604,237 5/10/2022
3.1.24 353,208 4/11/2022
3.1.23 647,768 3/8/2022
3.1.22 1,925,180 12/14/2021
3.1.21 1,731,348 11/7/2021
3.1.20 858,244 10/11/2021
3.1.19 1,018,894 9/14/2021
3.1.18 2,366,056 8/10/2021
3.1.17 1,183,397 7/13/2021
3.1.16 1,540,905 6/8/2021
3.1.15 1,702,778 5/11/2021
3.1.14 1,683,646 4/6/2021
3.1.13 1,876,791 3/9/2021
3.1.12 1,713,455 2/9/2021
3.1.11 1,910,681 1/12/2021
3.1.10 4,928,240 11/9/2020
3.1.9 7,143,151 10/13/2020
3.1.8 8,929,406 9/8/2020
3.1.7 5,594,562 8/11/2020
3.1.6 5,013,003 7/14/2020
3.1.5 6,069,043 6/9/2020
3.1.4 5,742,852 5/12/2020
3.1.3 9,497,617 3/24/2020
3.1.2 6,526,603 2/19/2020
3.1.1 6,392,875 1/14/2020
3.1.0 8,180,839 12/3/2019
3.1.0-preview3.19554.8 42,610 11/13/2019
3.1.0-preview2.19525.5 18,318 11/1/2019
3.1.0-preview1.19506.2 520,352 10/15/2019
3.0.3 76,970 2/19/2020
3.0.2 36,951 1/14/2020
3.0.1 746,154 11/18/2019
3.0.0 6,252,744 9/23/2019
3.0.0-rc1.19456.14 34,418 9/16/2019
3.0.0-preview9.19423.6 42,209 9/4/2019
3.0.0-preview8.19405.11 57,712 8/13/2019
3.0.0-preview7.19362.6 41,335 7/23/2019
3.0.0-preview6.19304.10 117,727 6/12/2019
3.0.0-preview5.19227.1 65,672 5/6/2019
3.0.0-preview4.19216.3 11,493 4/18/2019
3.0.0-preview3.19153.1 36,811 3/6/2019
3.0.0-preview.19074.3 15,013 1/29/2019
3.0.0-preview.18572.1 16,667 12/3/2018
2.2.6 19,951,175 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 10,770,474 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 3,370,630 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 3,805,442 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 3,830,455 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 12,690,284 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 111,623 10/17/2018
2.2.0-preview2-35157 86,148 9/12/2018
2.2.0-preview1-35029 16,054 8/22/2018
2.1.14 2,649,407 11/18/2019
2.1.11 2,261,414 5/14/2019
2.1.8 2,735,704 2/12/2019
2.1.4 9,249,545 10/1/2018
2.1.3 3,808,112 9/11/2018
2.1.2 2,964,638 8/21/2018
2.1.1 12,218,088 6/18/2018
2.1.0 5,918,944 5/29/2018
2.1.0-rc1-final 108,193 5/6/2018
2.1.0-preview2-final 163,491 4/10/2018
2.1.0-preview1-final 219,926 2/26/2018
2.0.3 4,237,091 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 5,207,958 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 6,724,229 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 8,169,131 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 65,577 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 123,198 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 1,300,781 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 456,196 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 32,834 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 88,304 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 1,477,784 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 883,387 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 710,274 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 19,512 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 21,198 11/14/2017 1.0.6 is deprecated because it is no longer maintained.
1.0.5 16,618 9/20/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 28,801 5/9/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 376,084 3/6/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 35,532 12/12/2016 1.0.2 is deprecated because it is no longer maintained.
1.0.1 1,678,347 9/13/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 652,141 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 56,862 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.