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 (607)

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,392,214 11/12/2024
9.0.0-rc.2.24474.1 55,964 10/8/2024
9.0.0-rc.1.24451.1 41,157 9/10/2024
9.0.0-preview.7.24405.3 24,606 8/13/2024
9.0.0-preview.6.24327.4 58,711 7/9/2024
9.0.0-preview.5.24306.3 20,241 6/11/2024
9.0.0-preview.4.24267.1 32,030 5/21/2024
9.0.0-preview.3.24172.4 32,651 4/11/2024
9.0.0-preview.2.24128.4 23,917 3/12/2024
9.0.0-preview.1.24081.2 23,064 2/13/2024
8.0.11 1,441,853 11/12/2024
8.0.10 4,826,563 10/8/2024
8.0.8 8,682,019 8/13/2024
8.0.7 5,655,069 7/9/2024
8.0.6 6,909,753 5/28/2024
8.0.5 3,113,523 5/14/2024
8.0.4 7,275,160 4/9/2024
8.0.3 4,931,077 3/12/2024
8.0.2 6,085,303 2/13/2024
8.0.1 5,932,764 1/9/2024
8.0.0 8,440,048 11/14/2023
8.0.0-rc.2.23480.1 99,160 10/10/2023
8.0.0-rc.1.23419.6 62,292 9/12/2023
8.0.0-preview.7.23375.4 41,185 8/8/2023
8.0.0-preview.6.23329.4 65,911 7/11/2023
8.0.0-preview.5.23280.1 54,138 6/13/2023
8.0.0-preview.4.23259.3 41,406 5/16/2023
8.0.0-preview.3.23174.2 62,008 4/11/2023
8.0.0-preview.2.23128.3 129,995 3/14/2023
8.0.0-preview.1.23111.4 38,442 2/21/2023
7.0.20 1,089,966 5/28/2024
7.0.19 197,677 5/14/2024
7.0.18 597,088 4/9/2024
7.0.17 834,006 3/12/2024
7.0.16 888,426 2/13/2024
7.0.15 1,455,038 1/9/2024
7.0.14 2,651,516 11/14/2023
7.0.13 3,195,432 10/24/2023
7.0.12 1,959,421 10/10/2023
7.0.11 4,386,440 9/12/2023
7.0.10 4,920,874 8/8/2023
7.0.9 3,954,398 7/11/2023
7.0.8 2,531,034 6/22/2023
7.0.7 2,246,654 6/13/2023
7.0.5 10,148,337 4/11/2023
7.0.4 4,168,981 3/14/2023
7.0.3 5,276,227 2/14/2023
7.0.2 5,966,156 1/10/2023
7.0.1 3,542,959 12/13/2022
7.0.0 8,452,160 11/7/2022
7.0.0-rc.2.22472.11 101,851 10/11/2022
7.0.0-rc.1.22426.7 132,677 9/14/2022
7.0.0-preview.7.22376.2 33,326 8/9/2022
7.0.0-preview.6.22329.4 34,130 7/12/2022
7.0.0-preview.5.22302.2 25,362 6/14/2022
7.0.0-preview.4.22229.2 31,218 5/10/2022
7.0.0-preview.3.22175.1 46,787 4/13/2022
7.0.0-preview.2.22153.1 21,920 3/14/2022
7.0.0-preview.1.22076.6 25,342 2/17/2022
6.0.36 112,481 11/12/2024
6.0.35 190,118 10/8/2024
6.0.33 385,417 8/13/2024
6.0.32 314,930 7/9/2024
6.0.31 452,600 5/28/2024
6.0.30 195,160 5/14/2024
6.0.29 655,834 4/9/2024
6.0.28 642,663 3/12/2024
6.0.27 869,089 2/13/2024
6.0.26 1,337,672 1/9/2024
6.0.25 1,768,389 11/14/2023
6.0.24 924,940 10/24/2023
6.0.23 608,486 10/10/2023
6.0.22 1,251,552 9/12/2023
6.0.21 1,721,882 8/8/2023
6.0.20 1,454,966 7/11/2023
6.0.19 1,560,607 6/22/2023
6.0.18 585,808 6/13/2023
6.0.16 3,876,937 4/11/2023
6.0.15 2,219,630 3/14/2023
6.0.14 2,395,964 2/14/2023
6.0.13 3,956,021 1/10/2023
6.0.12 2,778,726 12/13/2022
6.0.11 5,388,298 11/7/2022
6.0.10 8,965,384 10/11/2022
6.0.9 8,358,965 9/13/2022
6.0.8 9,112,195 8/9/2022
6.0.7 8,471,928 7/12/2022
6.0.6 6,483,049 6/14/2022
6.0.5 9,287,327 5/10/2022
6.0.4 6,645,271 4/11/2022
6.0.3 8,924,911 3/8/2022
6.0.2 6,950,279 2/8/2022
6.0.1 16,076,291 12/14/2021
6.0.0 15,050,858 11/8/2021
6.0.0-rc.2.21480.5 134,303 10/12/2021
6.0.0-rc.1.21452.10 65,601 9/14/2021
6.0.0-preview.7.21378.4 37,576 8/10/2021
6.0.0-preview.6.21352.1 22,039 7/14/2021
6.0.0-preview.5.21301.9 91,731 6/15/2021
6.0.0-preview.4.21253.1 23,937 5/24/2021
6.0.0-preview.3.21201.2 45,941 4/8/2021
6.0.0-preview.2.21154.2 21,164 3/11/2021
6.0.0-preview.1.21102.2 51,599 2/12/2021
5.0.17 3,238,867 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 847,385 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 1,030,532 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 851,877 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 2,069,194 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 2,369,583 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 4,131,445 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 4,628,255 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 4,687,470 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 4,902,385 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 5,517,109 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 4,101,206 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 5,383,407 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 3,760,377 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 4,166,328 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 4,045,697 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 3,781,997 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 6,603,411 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 123,455 10/13/2020
5.0.0-rc.1.20451.13 127,480 9/14/2020
5.0.0-preview.8.20407.4 53,506 8/25/2020
5.0.0-preview.7.20365.15 47,139 7/21/2020
5.0.0-preview.6.20312.4 42,261 6/25/2020
5.0.0-preview.5.20278.2 31,412 6/10/2020
5.0.0-preview.4.20220.10 45,500 5/18/2020
5.0.0-preview.3.20181.2 51,611 4/23/2020
5.0.0-preview.2.20159.4 27,340 4/2/2020
5.0.0-preview.2.20120.8 23,494 3/16/2020
3.1.32 3,022,056 12/13/2022
3.1.31 753,897 11/8/2022
3.1.30 347,153 10/11/2022
3.1.29 869,260 9/13/2022
3.1.28 539,243 8/9/2022
3.1.27 430,875 7/12/2022
3.1.26 333,798 6/14/2022
3.1.25 604,593 5/10/2022
3.1.24 353,455 4/11/2022
3.1.23 648,182 3/8/2022
3.1.22 1,926,592 12/14/2021
3.1.21 1,733,510 11/7/2021
3.1.20 858,835 10/11/2021
3.1.19 1,019,641 9/14/2021
3.1.18 2,366,629 8/10/2021
3.1.17 1,184,016 7/13/2021
3.1.16 1,541,534 6/8/2021
3.1.15 1,704,833 5/11/2021
3.1.14 1,684,088 4/6/2021
3.1.13 1,877,444 3/9/2021
3.1.12 1,714,050 2/9/2021
3.1.11 1,911,153 1/12/2021
3.1.10 4,929,404 11/9/2020
3.1.9 7,145,356 10/13/2020
3.1.8 8,931,422 9/8/2020
3.1.7 5,596,737 8/11/2020
3.1.6 5,014,150 7/14/2020
3.1.5 6,071,021 6/9/2020
3.1.4 5,747,092 5/12/2020
3.1.3 9,500,642 3/24/2020
3.1.2 6,528,259 2/19/2020
3.1.1 6,394,584 1/14/2020
3.1.0 8,183,314 12/3/2019
3.1.0-preview3.19554.8 42,619 11/13/2019
3.1.0-preview2.19525.5 18,320 11/1/2019
3.1.0-preview1.19506.2 520,706 10/15/2019
3.0.3 77,163 2/19/2020
3.0.2 36,960 1/14/2020
3.0.1 746,287 11/18/2019
3.0.0 6,254,372 9/23/2019
3.0.0-rc1.19456.14 34,420 9/16/2019
3.0.0-preview9.19423.6 42,214 9/4/2019
3.0.0-preview8.19405.11 57,732 8/13/2019
3.0.0-preview7.19362.6 41,337 7/23/2019
3.0.0-preview6.19304.10 117,736 6/12/2019
3.0.0-preview5.19227.1 65,680 5/6/2019
3.0.0-preview4.19216.3 11,494 4/18/2019
3.0.0-preview3.19153.1 36,811 3/6/2019
3.0.0-preview.19074.3 15,016 1/29/2019
3.0.0-preview.18572.1 16,673 12/3/2018
2.2.6 19,958,276 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 10,772,489 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 3,371,240 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 3,805,898 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 3,831,160 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 12,696,056 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 111,632 10/17/2018
2.2.0-preview2-35157 86,158 9/12/2018
2.2.0-preview1-35029 16,056 8/22/2018
2.1.14 2,650,781 11/18/2019
2.1.11 2,261,705 5/14/2019
2.1.8 2,737,628 2/12/2019
2.1.4 9,252,009 10/1/2018
2.1.3 3,808,454 9/11/2018
2.1.2 2,964,893 8/21/2018
2.1.1 12,232,197 6/18/2018
2.1.0 5,920,365 5/29/2018
2.1.0-rc1-final 108,193 5/6/2018
2.1.0-preview2-final 163,517 4/10/2018
2.1.0-preview1-final 219,956 2/26/2018
2.0.3 4,238,334 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 5,209,831 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 6,725,483 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 8,171,195 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 65,587 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 123,517 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 1,303,798 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 456,329 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 32,843 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 88,318 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 1,478,300 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 883,481 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 710,348 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,203 11/14/2017 1.0.6 is deprecated because it is no longer maintained.
1.0.5 16,638 9/20/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 28,811 5/9/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 376,380 3/6/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 35,535 12/12/2016 1.0.2 is deprecated because it is no longer maintained.
1.0.1 1,678,363 9/13/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 654,190 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 56,863 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.