Microsoft.EntityFrameworkCore.SqlServer 9.0.4

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.SqlServer --version 9.0.4
                    
NuGet\Install-Package Microsoft.EntityFrameworkCore.SqlServer -Version 9.0.4
                    
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.4" />
                    
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.4" />
                    
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.4
                    
#r "nuget: Microsoft.EntityFrameworkCore.SqlServer, 9.0.4"
                    
#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.
#addin nuget:?package=Microsoft.EntityFrameworkCore.SqlServer&version=9.0.4
                    
Install Microsoft.EntityFrameworkCore.SqlServer as a Cake Addin
#tool nuget:?package=Microsoft.EntityFrameworkCore.SqlServer&version=9.0.4
                    
Install Microsoft.EntityFrameworkCore.SqlServer 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3.7K)

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

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.
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
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
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
kgrzybek/modular-monolith-with-ddd
Full Modular Monolith application with Domain-Driven Design approach.
dotnet-architecture/eShopOnWeb
Sample ASP.NET Core 8.0 reference application, now community supported: https://github.com/NimblePros/eShopOnWeb
AutoMapper/AutoMapper
A convention-based object-object mapper in .NET.
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10 Preview 3, 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
elsa-workflows/elsa-core
A .NET workflows library
dotnetcore/CAP
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
louthy/language-ext
C# pure functional programming framework - come and get declarative!
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.
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
Version Downloads Last updated
10.0.0-preview.3.25171.6 1,188 4/10/2025
10.0.0-preview.2.25163.8 8,038 3/18/2025
10.0.0-preview.1.25081.1 9,131 2/25/2025
9.0.4 112,921 4/8/2025
9.0.3 1,207,962 3/11/2025
9.0.2 1,999,412 2/11/2025
9.0.1 2,175,755 1/14/2025
9.0.0 5,048,911 11/12/2024
9.0.0-rc.2.24474.1 67,553 10/8/2024
9.0.0-rc.1.24451.1 49,853 9/10/2024
9.0.0-preview.7.24405.3 30,075 8/13/2024
9.0.0-preview.6.24327.4 97,830 7/9/2024
9.0.0-preview.5.24306.3 26,848 6/11/2024
9.0.0-preview.4.24267.1 36,919 5/21/2024
9.0.0-preview.3.24172.4 36,886 4/11/2024
9.0.0-preview.2.24128.4 26,486 3/12/2024
9.0.0-preview.1.24081.2 34,979 2/13/2024
8.0.15 42,316 4/8/2025
8.0.14 565,085 3/11/2025
8.0.13 1,013,601 2/11/2025
8.0.12 1,283,987 1/14/2025
8.0.11 5,851,579 11/12/2024
8.0.10 9,001,484 10/8/2024
8.0.8 12,801,066 8/13/2024
8.0.7 7,808,947 7/9/2024
8.0.6 8,789,700 5/28/2024
8.0.5 3,952,288 5/14/2024
8.0.4 9,060,127 4/9/2024
8.0.3 5,895,171 3/12/2024
8.0.2 7,332,779 2/13/2024
8.0.1 6,856,525 1/9/2024
8.0.0 10,395,525 11/14/2023
8.0.0-rc.2.23480.1 102,460 10/10/2023
8.0.0-rc.1.23419.6 64,408 9/12/2023
8.0.0-preview.7.23375.4 41,914 8/8/2023
8.0.0-preview.6.23329.4 69,943 7/11/2023
8.0.0-preview.5.23280.1 69,019 6/13/2023
8.0.0-preview.4.23259.3 44,881 5/16/2023
8.0.0-preview.3.23174.2 67,201 4/11/2023
8.0.0-preview.2.23128.3 133,464 3/14/2023
8.0.0-preview.1.23111.4 39,668 2/21/2023
7.0.20 1,652,950 5/28/2024
7.0.19 240,638 5/14/2024
7.0.18 710,685 4/9/2024
7.0.17 925,931 3/12/2024
7.0.16 991,547 2/13/2024
7.0.15 1,599,931 1/9/2024
7.0.14 2,912,071 11/14/2023
7.0.13 3,572,871 10/24/2023
7.0.12 2,098,211 10/10/2023
7.0.11 4,831,673 9/12/2023
7.0.10 5,279,134 8/8/2023
7.0.9 4,222,787 7/11/2023
7.0.8 2,702,158 6/22/2023
7.0.7 2,359,687 6/13/2023
7.0.5 10,655,195 4/11/2023
7.0.4 4,361,213 3/14/2023
7.0.3 5,519,415 2/14/2023
7.0.2 6,263,832 1/10/2023
7.0.1 3,715,765 12/13/2022
7.0.0 9,068,664 11/7/2022
7.0.0-rc.2.22472.11 106,564 10/11/2022
7.0.0-rc.1.22426.7 133,629 9/14/2022
7.0.0-preview.7.22376.2 34,313 8/9/2022
7.0.0-preview.6.22329.4 35,428 7/12/2022
7.0.0-preview.5.22302.2 25,900 6/14/2022
7.0.0-preview.4.22229.2 31,615 5/10/2022
7.0.0-preview.3.22175.1 47,078 4/13/2022
7.0.0-preview.2.22153.1 22,267 3/14/2022
7.0.0-preview.1.22076.6 25,860 2/17/2022
6.0.36 470,025 11/12/2024
6.0.35 308,610 10/8/2024
6.0.33 533,308 8/13/2024
6.0.32 398,866 7/9/2024
6.0.31 536,962 5/28/2024
6.0.30 230,186 5/14/2024
6.0.29 755,994 4/9/2024
6.0.28 728,912 3/12/2024
6.0.27 1,016,119 2/13/2024
6.0.26 1,494,232 1/9/2024
6.0.25 1,960,667 11/14/2023
6.0.24 1,056,231 10/24/2023
6.0.23 652,876 10/10/2023
6.0.22 1,345,004 9/12/2023
6.0.21 1,873,159 8/8/2023
6.0.20 1,571,264 7/11/2023
6.0.19 1,700,017 6/22/2023
6.0.18 630,511 6/13/2023
6.0.16 4,191,722 4/11/2023
6.0.15 2,357,245 3/14/2023
6.0.14 2,538,970 2/14/2023
6.0.13 4,143,234 1/10/2023
6.0.12 2,941,486 12/13/2022
6.0.11 5,648,806 11/7/2022
6.0.10 9,330,182 10/11/2022
6.0.9 8,689,995 9/13/2022
6.0.8 9,478,284 8/9/2022
6.0.7 8,762,322 7/12/2022
6.0.6 6,731,995 6/14/2022
6.0.5 9,642,114 5/10/2022
6.0.4 6,833,750 4/11/2022
6.0.3 9,194,751 3/8/2022
6.0.2 7,181,846 2/8/2022
6.0.1 16,830,602 12/14/2021
6.0.0 15,995,190 11/8/2021
6.0.0-rc.2.21480.5 136,243 10/12/2021
6.0.0-rc.1.21452.10 67,301 9/14/2021
6.0.0-preview.7.21378.4 38,347 8/10/2021
6.0.0-preview.6.21352.1 22,207 7/14/2021
6.0.0-preview.5.21301.9 94,217 6/15/2021
6.0.0-preview.4.21253.1 25,027 5/24/2021
6.0.0-preview.3.21201.2 47,808 4/8/2021
6.0.0-preview.2.21154.2 21,293 3/11/2021
6.0.0-preview.1.21102.2 52,559 2/12/2021
5.0.17 3,448,105 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 872,667 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 1,077,892 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 878,375 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 2,144,530 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 2,432,153 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 4,227,276 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 4,765,256 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 4,772,199 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 5,105,542 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 5,608,642 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 4,182,122 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 5,488,268 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 3,810,698 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 4,230,850 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 4,099,165 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 3,847,925 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 6,710,188 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 125,010 10/13/2020
5.0.0-rc.1.20451.13 128,547 9/14/2020
5.0.0-preview.8.20407.4 54,316 8/25/2020
5.0.0-preview.7.20365.15 47,659 7/21/2020
5.0.0-preview.6.20312.4 42,689 6/25/2020
5.0.0-preview.5.20278.2 32,213 6/10/2020
5.0.0-preview.4.20220.10 46,030 5/18/2020
5.0.0-preview.3.20181.2 52,008 4/23/2020
5.0.0-preview.2.20159.4 27,817 4/2/2020
5.0.0-preview.2.20120.8 23,702 3/16/2020
3.1.32 3,787,651 12/13/2022
3.1.31 908,992 11/8/2022
3.1.30 392,196 10/11/2022
3.1.29 1,004,858 9/13/2022
3.1.28 577,988 8/9/2022
3.1.27 455,024 7/12/2022
3.1.26 350,543 6/14/2022
3.1.25 626,407 5/10/2022
3.1.24 366,468 4/11/2022
3.1.23 671,782 3/8/2022
3.1.22 2,035,961 12/14/2021
3.1.21 1,809,918 11/7/2021
3.1.20 917,271 10/11/2021
3.1.19 1,047,497 9/14/2021
3.1.18 2,395,685 8/10/2021
3.1.17 1,228,776 7/13/2021
3.1.16 1,579,374 6/8/2021
3.1.15 1,797,464 5/11/2021
3.1.14 1,718,283 4/6/2021
3.1.13 1,914,282 3/9/2021
3.1.12 1,739,081 2/9/2021
3.1.11 1,938,314 1/12/2021
3.1.10 4,994,766 11/9/2020
3.1.9 7,243,730 10/13/2020
3.1.8 9,012,326 9/8/2020
3.1.7 5,719,088 8/11/2020
3.1.6 5,085,603 7/14/2020
3.1.5 6,176,264 6/9/2020
3.1.4 5,888,089 5/12/2020
3.1.3 9,682,364 3/24/2020
3.1.2 6,614,182 2/19/2020
3.1.1 6,477,667 1/14/2020
3.1.0 8,320,481 12/3/2019
3.1.0-preview3.19554.8 43,138 11/13/2019
3.1.0-preview2.19525.5 18,618 11/1/2019
3.1.0-preview1.19506.2 535,105 10/15/2019
3.0.3 80,783 2/19/2020
3.0.2 37,667 1/14/2020
3.0.1 752,804 11/18/2019
3.0.0 6,364,521 9/23/2019
3.0.0-rc1.19456.14 34,661 9/16/2019
3.0.0-preview9.19423.6 42,440 9/4/2019
3.0.0-preview8.19405.11 58,055 8/13/2019
3.0.0-preview7.19362.6 41,729 7/23/2019
3.0.0-preview6.19304.10 119,107 6/12/2019
3.0.0-preview5.19227.1 66,714 5/6/2019
3.0.0-preview4.19216.3 11,586 4/18/2019
3.0.0-preview3.19153.1 36,994 3/6/2019
3.0.0-preview.19074.3 15,662 1/29/2019
3.0.0-preview.18572.1 17,003 12/3/2018
2.3.0 8,318 1/14/2025
2.2.6 20,367,275 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 10,891,417 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 3,403,667 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 3,837,730 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 3,877,752 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 12,986,600 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 112,022 10/17/2018
2.2.0-preview2-35157 86,623 9/12/2018
2.2.0-preview1-35029 16,172 8/22/2018
2.1.14 2,714,287 11/18/2019
2.1.11 2,282,143 5/14/2019
2.1.8 2,817,187 2/12/2019
2.1.4 9,347,092 10/1/2018
2.1.3 3,831,426 9/11/2018
2.1.2 2,989,692 8/21/2018
2.1.1 12,842,062 6/18/2018
2.1.0 5,992,788 5/29/2018
2.1.0-rc1-final 108,543 5/6/2018
2.1.0-preview2-final 165,053 4/10/2018
2.1.0-preview1-final 220,982 2/26/2018
2.0.3 4,307,717 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 5,293,251 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 6,812,511 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 8,266,715 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 66,118 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 150,861 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 1,493,710 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 464,283 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 33,274 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 89,304 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 1,506,435 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 891,155 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 714,955 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 19,669 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 21,557 11/14/2017 1.0.6 is deprecated because it is no longer maintained.
1.0.5 17,311 9/20/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 29,392 5/9/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 388,166 3/6/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 35,861 12/12/2016 1.0.2 is deprecated because it is no longer maintained.
1.0.1 1,679,045 9/13/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 753,717 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 57,040 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.