VersaTul.Configuration.Defaults
1.0.20
Prefix Reserved
dotnet add package VersaTul.Configuration.Defaults --version 1.0.20
NuGet\Install-Package VersaTul.Configuration.Defaults -Version 1.0.20
<PackageReference Include="VersaTul.Configuration.Defaults" Version="1.0.20" />
paket add VersaTul.Configuration.Defaults --version 1.0.20
#r "nuget: VersaTul.Configuration.Defaults, 1.0.20"
// Install VersaTul.Configuration.Defaults as a Cake Addin #addin nuget:?package=VersaTul.Configuration.Defaults&version=1.0.20 // Install VersaTul.Configuration.Defaults as a Cake Tool #tool nuget:?package=VersaTul.Configuration.Defaults&version=1.0.20
VersaTul Configuration Defaults
VersaTul Configuration Defaults is a project that enables you to quickly setup default settings for VersaTul projects. Currently, it supports Entity Framework Core and MongoDB projects.
Installation
To use VersaTul Configuration Defaults, first install it using nuget:
dotnet add package VersaTul.Configuration.Defaults
Usage
To use VersaTul Configuration Defaults, you need to create a configuration builder object and use the project-specific builder methods to add or replace the default settings. Then, you can call the BuildConfig
method to create a ConfigSettings
dictionary that contains the configuration values.
For example, to create a configuration for a MongoDB project, you can use the following code:
using VersaTul.Configuration.Defaults;
using VersaTul.Configuration.Defaults.MongoDb;
var configBuilder = new ConfigurationBuilder();
configBuilder.AddMongoDbDefaults()
.AddOrReplace("ConnectionString", "mongodb://localhost:27017")
.AddOrReplace("DatabaseName", "MyDatabase");
var config = configBuilder.BuildConfig();
For more information, please refer to the documentation of each project.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
-
net8.0
- VersaTul.Configurations (>= 1.0.15)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.