Microsoft SQL Server database provider for Entity Framework Core.
Install
| Product | Versions |
|---|---|
| .NET |
README
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.
Changes from Previous Version
Adoption Assessment
Workloads standardized on SQL Server or Azure SQL that need mature migrations and provider documentation.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.