ConfigurationLibrary 1.0.1
Install-Package ConfigurationLibrary -Version 1.0.1
dotnet add package ConfigurationLibrary --version 1.0.1
<PackageReference Include="ConfigurationLibrary" Version="1.0.1" />
paket add ConfigurationLibrary --version 1.0.1
#r "nuget: ConfigurationLibrary, 1.0.1"
// Install ConfigurationLibrary as a Cake Addin
#addin nuget:?package=ConfigurationLibrary&version=1.0.1
// Install ConfigurationLibrary as a Cake Tool
#tool nuget:?package=ConfigurationLibrary&version=1.0.1
This library provides a method to obtain a connection string to use with a data provider or Entity Framework Core, intended for desktop applications as ASP.NET Core has this already with more options via dependency injection.
In the configuration file, ActiveEnvironment
points to the environment to connect, development, stage (test) and production.
Well someone may say I only have one database server. Then set the environment to any of the environments than if at a later time more servers are available you are ready.
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
-
net5.0
- Microsoft.Extensions.Configuration (>= 5.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 5.0.0)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 5.0.0)
- Microsoft.Extensions.Configuration.FileExtensions (>= 5.0.0)
- Microsoft.Extensions.Configuration.Json (>= 5.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ConfigurationLibrary:
Package | Downloads |
---|---|
EntityFrameworkCoreHelpers
Provides methods for connecting to SQL-Server databases for EF Core 5.x |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.1 | 105 | 4/23/2022 |