Fonlow.EntityFrameworkCore.MsSql
1.1.0
See the version list below for details.
dotnet add package Fonlow.EntityFrameworkCore.MsSql --version 1.1.0
NuGet\Install-Package Fonlow.EntityFrameworkCore.MsSql -Version 1.1.0
<PackageReference Include="Fonlow.EntityFrameworkCore.MsSql" Version="1.1.0" />
paket add Fonlow.EntityFrameworkCore.MsSql --version 1.1.0
#r "nuget: Fonlow.EntityFrameworkCore.MsSql, 1.1.0"
// Install Fonlow.EntityFrameworkCore.MsSql as a Cake Addin #addin nuget:?package=Fonlow.EntityFrameworkCore.MsSql&version=1.1.0 // Install Fonlow.EntityFrameworkCore.MsSql as a Cake Tool #tool nuget:?package=Fonlow.EntityFrameworkCore.MsSql&version=1.1.0
Microsoft.EntityFrameworkCore.DbContextOptionsBuilder provides a simple API surface for configuring DbContextOptions. Databases (and other extensions) typically define extension methods on this object that allow you to configure the database connection (and other options) to be used for a context. Then through software design, you can decouple the business modules or DAL from concrete database engines.
For Dependency Injection, IDbEngineDbContext
can be used with various design patterns of IoC, as well as .NET reflection.
Example codes are provided in Core3WebApi/Program.cs with reflection.
This library is for MS SQL Server.
Docker
Whether to use docker, it is a concern of deployment. However, these days, since the popularity of container technologies, using docker or alike is convenient for integration testing and CI. And in the CD pipeline, you don't have to use container even if your CI uses container.
References:
After you pull a SQL Server image, use the following to established a docker instance:
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=Secured321*" `
-p 1433:1433 --name demosql --hostname demosql `
-d `
mcr.microsoft.com/mssql/server:2022-latest
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. |
-
net9.0
- Fonlow.EntityFrameworkCore.Abstract (>= 1.1.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
.NET 9