Microsoft.EntityFrameworkCore.SqlServer
3.0.0-preview.19074.3
Prefix Reserved
Requires NuGet 3.6 or higher.
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 3.0.0-preview.19074.3
NuGet\Install-Package Microsoft.EntityFrameworkCore.SqlServer -Version 3.0.0-preview.19074.3
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0-preview.19074.3" />
paket add Microsoft.EntityFrameworkCore.SqlServer --version 3.0.0-preview.19074.3
#r "nuget: Microsoft.EntityFrameworkCore.SqlServer, 3.0.0-preview.19074.3"
// Install Microsoft.EntityFrameworkCore.SqlServer as a Cake Addin #addin nuget:?package=Microsoft.EntityFrameworkCore.SqlServer&version=3.0.0-preview.19074.3&prerelease // Install Microsoft.EntityFrameworkCore.SqlServer as a Cake Tool #tool nuget:?package=Microsoft.EntityFrameworkCore.SqlServer&version=3.0.0-preview.19074.3&prerelease
Microsoft.EntityFrameworkCore.SqlServer is Microsoft SQL Server EF Core Database Provider, which enables you to use Entity Framework Core with Microsoft SQL Server (including Azure SQL Database).
Getting started
Explain how to use your package, provide clear and concise getting started instructions, including any necessary steps.
Prerequisites
- Supported database Engines: Microsoft SQL Server (2012 onwards)
- The provider references Microsoft.Data.SqlClient (not System.Data.SqlClient). If your project takes a direct dependency on SqlClient, make sure it references the Microsoft.Data.SqlClient package.
Usage
Once you've installed the package, you can use it in your Entity Framework Core application by specifying the SQL Server provider in your DbContext's OnConfiguring method:
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer("Server=(localdb)\\mssqllocaldb;Database=MyDatabase;Trusted_Connection=True;");
}
In this example, we're using the (localdb)\mssqllocaldb server with the MyDatabase database. You'll need to adjust the connection string to match your own SQL Server instance and database.
Features
The SQL Server provider for Entity Framework Core supports a variety of features, including:
- Basic CRUD operations
- Transactions
- Stored procedures
- Views
- Table-valued functions
- Identity columns
- In-memory tables
Additional documentation
For more information on using the SQL Server provider for Entity Framework Core, you can refer to the official documentation.
Feedback
If you encounter a bug or would like to request a feature, submit an Github issue. For more details, see getting support.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.EntityFrameworkCore.Relational (>= 3.0.0-preview.19074.3)
- System.Data.SqlClient (>= 4.7.0-preview.19073.11)
GitHub repositories (601)
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 |
---|---|---|
3.0.0-preview.19074.3 | 5 | 1/28/2019 |
3.0.0-preview.18572.1 | 2 | 11/30/2018 |