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                
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="VersaTul.Configuration.Defaults" Version="1.0.20" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VersaTul.Configuration.Defaults --version 1.0.20                
#r "nuget: VersaTul.Configuration.Defaults, 1.0.20"                
#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 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.20 128 4/5/2024
1.0.19 115 4/4/2024
1.0.18 120 4/4/2024
1.0.17 126 3/1/2024
1.0.16 117 2/1/2024
1.0.15 145 1/15/2024
1.0.14 104 1/11/2024
1.0.13 172 11/22/2023
1.0.12 187 7/22/2023