Microsoft.EntityFrameworkCore.SqlServer 9.0.0

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

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.
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#:package Microsoft.EntityFrameworkCore.SqlServer@9.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.EntityFrameworkCore.SqlServer&version=9.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.EntityFrameworkCore.SqlServer&version=9.0.0
                    
Install as a Cake Tool

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

NuGet packages (3.9K)

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.EntityFrameworkCore.SqlServer.NetTopologySuite

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

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.

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

Showing the top 20 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
ardalis/CleanArchitecture
Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 9
bitwarden/server
Bitwarden infrastructure/backend (API, database, Docker, etc).
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
kgrzybek/modular-monolith-with-ddd
Full Modular Monolith application with Domain-Driven Design approach.
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
dotnet-architecture/eShopOnWeb
Sample ASP.NET Core 8.0 reference application, now community supported: https://github.com/NimblePros/eShopOnWeb
LuckyPennySoftware/AutoMapper
A convention-based object-object mapper in .NET.
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10 RC 1, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
MassTransit/MassTransit
Distributed Application Framework for .NET
dotnetcore/CAP
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
EduardoPires/EquinoxProject
Web Application ASP.NET 9 using Clean Architecture, DDD, CQRS, Event Sourcing and a lot of good practices
ant-design-blazor/ant-design-blazor
🌈A rich set of enterprise-class UI components based on Ant Design and Blazor.
fullstackhero/dotnet-starter-kit
Production Grade Cloud-Ready .NET 9 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
danielgerlag/workflow-core
Lightweight workflow engine for .NET Standard
aspnet/Mvc
[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
jasontaylordev/NorthwindTraders
Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.
Version Downloads Last Updated
10.0.0-rc.1.25451.107 11,908 9/9/2025
10.0.0-preview.7.25380.108 12,466 8/12/2025
10.0.0-preview.6.25358.103 8,152 7/15/2025
10.0.0-preview.5.25277.114 15,594 6/6/2025
10.0.0-preview.4.25258.110 7,971 5/12/2025
10.0.0-preview.3.25171.6 10,981 4/10/2025
10.0.0-preview.2.25163.8 8,455 3/18/2025
10.0.0-preview.1.25081.1 9,844 2/25/2025
9.0.9 706,360 9/9/2025
9.0.8 2,176,494 8/5/2025
9.0.7 2,022,442 7/8/2025
9.0.6 2,650,154 6/10/2025
9.0.5 3,161,375 5/13/2025
9.0.4 4,204,552 4/8/2025
9.0.3 3,566,116 3/11/2025
9.0.2 4,889,251 2/11/2025
9.0.1 4,087,851 1/14/2025
9.0.0 8,552,959 11/12/2024
9.0.0-rc.2.24474.1 83,235 10/8/2024
9.0.0-rc.1.24451.1 58,678 9/10/2024
9.0.0-preview.7.24405.3 36,639 8/13/2024
9.0.0-preview.6.24327.4 176,673 7/9/2024
9.0.0-preview.5.24306.3 43,393 6/11/2024
9.0.0-preview.4.24267.1 40,709 5/21/2024
9.0.0-preview.3.24172.4 41,896 4/11/2024
9.0.0-preview.2.24128.4 30,169 3/12/2024
9.0.0-preview.1.24081.2 51,073 2/13/2024
8.0.20 209,576 9/9/2025
8.0.19 707,093 8/5/2025
8.0.18 620,652 7/8/2025
8.0.17 1,001,844 6/10/2025
8.0.16 1,294,480 5/13/2025
8.0.15 1,831,404 4/8/2025
8.0.14 2,411,871 3/11/2025
8.0.13 2,941,450 2/11/2025
8.0.12 2,943,896 1/14/2025
8.0.11 10,956,127 11/12/2024
8.0.10 13,851,479 10/8/2024
8.0.8 18,021,548 8/13/2024
8.0.7 10,533,440 7/9/2024
8.0.6 11,240,519 5/28/2024
8.0.5 5,057,045 5/14/2024
8.0.4 11,404,139 4/9/2024
8.0.3 7,181,765 3/12/2024
8.0.2 9,095,462 2/13/2024
8.0.1 8,127,569 1/9/2024
8.0.0 13,810,032 11/14/2023
8.0.0-rc.2.23480.1 105,087 10/10/2023
8.0.0-rc.1.23419.6 67,120 9/12/2023
8.0.0-preview.7.23375.4 42,669 8/8/2023
8.0.0-preview.6.23329.4 73,899 7/11/2023
8.0.0-preview.5.23280.1 91,128 6/13/2023
8.0.0-preview.4.23259.3 48,503 5/16/2023
8.0.0-preview.3.23174.2 73,739 4/11/2023
8.0.0-preview.2.23128.3 137,135 3/14/2023
8.0.0-preview.1.23111.4 41,096 2/21/2023
7.0.20 2,546,628 5/28/2024
7.0.19 286,347 5/14/2024
7.0.18 837,551 4/9/2024
7.0.17 1,019,851 3/12/2024
7.0.16 1,116,307 2/13/2024
7.0.15 1,791,839 1/9/2024
7.0.14 3,235,023 11/14/2023
7.0.13 4,006,757 10/24/2023
7.0.12 2,238,441 10/10/2023
7.0.11 5,551,993 9/12/2023
7.0.10 5,762,926 8/8/2023
7.0.9 4,517,300 7/11/2023
7.0.8 2,919,793 6/22/2023
7.0.7 2,491,599 6/13/2023
7.0.5 11,305,680 4/11/2023
7.0.4 4,603,434 3/14/2023
7.0.3 5,830,837 2/14/2023
7.0.2 6,598,133 1/10/2023
7.0.1 3,981,277 12/13/2022
7.0.0 9,916,046 11/7/2022
7.0.0-rc.2.22472.11 114,873 10/11/2022
7.0.0-rc.1.22426.7 135,880 9/14/2022
7.0.0-preview.7.22376.2 35,483 8/9/2022
7.0.0-preview.6.22329.4 36,600 7/12/2022
7.0.0-preview.5.22302.2 26,457 6/14/2022
7.0.0-preview.4.22229.2 32,076 5/10/2022
7.0.0-preview.3.22175.1 47,511 4/13/2022
7.0.0-preview.2.22153.1 22,729 3/14/2022
7.0.0-preview.1.22076.6 26,723 2/17/2022
6.0.36 1,172,754 11/12/2024
6.0.35 448,591 10/8/2024
6.0.33 655,760 8/13/2024
6.0.32 496,058 7/9/2024
6.0.31 652,251 5/28/2024
6.0.30 271,911 5/14/2024
6.0.29 868,008 4/9/2024
6.0.28 825,156 3/12/2024
6.0.27 1,199,950 2/13/2024
6.0.26 1,692,665 1/9/2024
6.0.25 2,173,563 11/14/2023
6.0.24 1,170,631 10/24/2023
6.0.23 712,497 10/10/2023
6.0.22 1,451,595 9/12/2023
6.0.21 2,048,119 8/8/2023
6.0.20 1,712,686 7/11/2023
6.0.19 1,845,950 6/22/2023
6.0.18 683,772 6/13/2023
6.0.16 4,491,351 4/11/2023
6.0.15 2,536,866 3/14/2023
6.0.14 2,705,507 2/14/2023
6.0.13 4,389,170 1/10/2023
6.0.12 3,136,344 12/13/2022
6.0.11 5,967,463 11/7/2022
6.0.10 9,805,013 10/11/2022
6.0.9 9,147,573 9/13/2022
6.0.8 9,924,529 8/9/2022
6.0.7 9,076,951 7/12/2022
6.0.6 7,080,027 6/14/2022
6.0.5 10,110,832 5/10/2022
6.0.4 7,088,273 4/11/2022
6.0.3 9,524,025 3/8/2022
6.0.2 7,490,877 2/8/2022
6.0.1 17,715,490 12/14/2021
6.0.0 17,282,103 11/8/2021
6.0.0-rc.2.21480.5 142,298 10/12/2021
6.0.0-rc.1.21452.10 70,817 9/14/2021
6.0.0-preview.7.21378.4 40,742 8/10/2021
6.0.0-preview.6.21352.1 22,850 7/14/2021
6.0.0-preview.5.21301.9 97,185 6/15/2021
6.0.0-preview.4.21253.1 30,605 5/24/2021
6.0.0-preview.3.21201.2 52,910 4/8/2021
6.0.0-preview.2.21154.2 22,443 3/11/2021
6.0.0-preview.1.21102.2 53,624 2/12/2021
5.0.17 3,747,524 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 909,123 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 1,120,068 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 914,353 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 2,237,038 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 2,503,513 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 4,370,831 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 4,971,281 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 4,909,635 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 5,396,967 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 5,848,218 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 4,316,699 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 5,674,757 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 3,916,288 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 4,330,179 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 4,181,974 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 3,962,831 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 6,960,822 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 128,854 10/13/2020
5.0.0-rc.1.20451.13 131,208 9/14/2020
5.0.0-preview.8.20407.4 54,618 8/25/2020
5.0.0-preview.7.20365.15 48,153 7/21/2020
5.0.0-preview.6.20312.4 43,063 6/25/2020
5.0.0-preview.5.20278.2 33,710 6/10/2020
5.0.0-preview.4.20220.10 46,529 5/18/2020
5.0.0-preview.3.20181.2 52,422 4/23/2020
5.0.0-preview.2.20159.4 28,767 4/2/2020
5.0.0-preview.2.20120.8 23,927 3/16/2020
3.1.32 5,064,018 12/13/2022
3.1.31 1,333,239 11/8/2022
3.1.30 460,699 10/11/2022
3.1.29 1,179,921 9/13/2022
3.1.28 649,636 8/9/2022
3.1.27 499,007 7/12/2022
3.1.26 372,103 6/14/2022
3.1.25 654,957 5/10/2022
3.1.24 384,194 4/11/2022
3.1.23 702,918 3/8/2022
3.1.22 2,240,020 12/14/2021
3.1.21 1,879,062 11/7/2021
3.1.20 1,034,002 10/11/2021
3.1.19 1,087,264 9/14/2021
3.1.18 2,442,254 8/10/2021
3.1.17 1,282,622 7/13/2021
3.1.16 1,637,243 6/8/2021
3.1.15 1,933,953 5/11/2021
3.1.14 1,770,057 4/6/2021
3.1.13 1,971,847 3/9/2021
3.1.12 1,776,268 2/9/2021
3.1.11 1,980,976 1/12/2021
3.1.10 5,087,514 11/9/2020
3.1.9 7,385,348 10/13/2020
3.1.8 9,122,786 9/8/2020
3.1.7 5,910,405 8/11/2020
3.1.6 5,194,736 7/14/2020
3.1.5 6,315,884 6/9/2020
3.1.4 6,079,407 5/12/2020
3.1.3 9,939,767 3/24/2020
3.1.2 6,734,110 2/19/2020
3.1.1 6,599,839 1/14/2020
3.1.0 8,514,701 12/3/2019
3.1.0-preview3.19554.8 44,218 11/13/2019
3.1.0-preview2.19525.5 19,237 11/1/2019
3.1.0-preview1.19506.2 555,261 10/15/2019
3.0.3 86,420 2/19/2020
3.0.2 39,470 1/14/2020
3.0.1 764,745 11/18/2019
3.0.0 6,521,740 9/23/2019
3.0.0-rc1.19456.14 34,920 9/16/2019
3.0.0-preview9.19423.6 42,715 9/4/2019
3.0.0-preview8.19405.11 58,729 8/13/2019
3.0.0-preview7.19362.6 42,326 7/23/2019
3.0.0-preview6.19304.10 120,184 6/12/2019
3.0.0-preview5.19227.1 68,156 5/6/2019
3.0.0-preview4.19216.3 11,745 4/18/2019
3.0.0-preview3.19153.1 37,957 3/6/2019
3.0.0-preview.19074.3 16,600 1/29/2019
3.0.0-preview.18572.1 17,280 12/3/2018
2.3.0 28,624 1/14/2025
2.2.6 21,004,499 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 11,055,733 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 3,456,343 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 3,893,088 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 3,938,663 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 13,397,325 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 112,539 10/17/2018
2.2.0-preview2-35157 87,375 9/12/2018
2.2.0-preview1-35029 16,470 8/22/2018
2.1.14 2,790,739 11/18/2019
2.1.11 2,307,418 5/14/2019
2.1.8 2,937,859 2/12/2019
2.1.4 9,445,682 10/1/2018
2.1.3 3,880,766 9/11/2018
2.1.2 3,030,979 8/21/2018
2.1.1 13,789,732 6/18/2018
2.1.0 6,094,750 5/29/2018
2.1.0-rc1-final 109,894 5/6/2018
2.1.0-preview2-final 168,511 4/10/2018
2.1.0-preview1-final 222,883 2/26/2018
2.0.3 4,402,715 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 5,414,396 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 6,935,472 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 8,431,137 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 67,045 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 194,357 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 1,781,933 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 475,420 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 34,819 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 91,386 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 1,536,570 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 903,672 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 723,600 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 19,989 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 22,836 11/14/2017 1.0.6 is deprecated because it is no longer maintained.
1.0.5 18,941 9/20/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 31,101 5/9/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 404,754 3/6/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 37,124 12/12/2016 1.0.2 is deprecated because it is no longer maintained.
1.0.1 1,681,394 9/13/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 906,526 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 57,424 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.