STBL.Configuration.EntityFramework
0.1.0
dotnet add package STBL.Configuration.EntityFramework --version 0.1.0
NuGet\Install-Package STBL.Configuration.EntityFramework -Version 0.1.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="STBL.Configuration.EntityFramework" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add STBL.Configuration.EntityFramework --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: STBL.Configuration.EntityFramework, 0.1.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.
// Install STBL.Configuration.EntityFramework as a Cake Addin #addin nuget:?package=STBL.Configuration.EntityFramework&version=0.1.0 // Install STBL.Configuration.EntityFramework as a Cake Tool #tool nuget:?package=STBL.Configuration.EntityFramework&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
STBL.Configuration.EntityFramework
A chain of nuget packages that I constantly implemented in my projects and decided not to repeat myself and here)
- STBL.Configuration.EntityFramework
It is possible to assign a configuration file or assign the following sector in appsettings
{
"DatabaseConnections": {
"DbContextName": {
"Host": "localhost",
"Port": 5432,
"Database": "test-db",
"Username": "test-user",
"Password": "b0ef8467b6fc4a1eafaacc73abcf347a"
}
}
}
It is possible to use "DatabaseConnections" without the main sector
var contextSettings = configurationRoot.GetDbContextSettings<DbContext>();
There are extensions methods for getting the connection string builder
var connectionString = contextSettings.ParseToStringBuilder().ConnectionString;
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. 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.
-
net7.0
- Microsoft.EntityFrameworkCore (>= 7.0.13)
- Microsoft.Extensions.Configuration (>= 7.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 7.0.4)
- Microsoft.Extensions.Configuration.FileExtensions (>= 7.0.0)
- Microsoft.Extensions.Configuration.Json (>= 7.0.0)
- Npgsql (>= 7.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.0 | 230 | 11/5/2023 |