Webion.Extensions.Configuration.Npgsql.Abstractions
1.0.4
dotnet add package Webion.Extensions.Configuration.Npgsql.Abstractions --version 1.0.4
NuGet\Install-Package Webion.Extensions.Configuration.Npgsql.Abstractions -Version 1.0.4
<PackageReference Include="Webion.Extensions.Configuration.Npgsql.Abstractions" Version="1.0.4" />
<PackageVersion Include="Webion.Extensions.Configuration.Npgsql.Abstractions" Version="1.0.4" />
<PackageReference Include="Webion.Extensions.Configuration.Npgsql.Abstractions" />
paket add Webion.Extensions.Configuration.Npgsql.Abstractions --version 1.0.4
#r "nuget: Webion.Extensions.Configuration.Npgsql.Abstractions, 1.0.4"
#addin nuget:?package=Webion.Extensions.Configuration.Npgsql.Abstractions&version=1.0.4
#tool nuget:?package=Webion.Extensions.Configuration.Npgsql.Abstractions&version=1.0.4
Webion.Extensions.Configuration.Npgsql.Abstractions
Overview
Webion.Extensions.Configuration.Npgsql.Abstractions
is a .NET library providing abstractions to support Npgsql-based configuration providers. It simplifies defining and working with application settings stored in PostgreSQL databases.
The library is part of the Webion.Extensions suite, designed to streamline configuration management in .NET projects that utilize PostgreSQL.
Key Features
- Neutral Abstractions: Provides a foundational abstraction for storing and managing application settings (
AppSettingBaseDbo
). - Targeted for modern .NET: Built for .NET 9.0 and utilizes modern C# features like nullable and implicit usings.
- Portability: Includes package metadata for easy NuGet packaging and integration.
- Documentation: Distributed with a detailed README and XML-embedded comments for enhanced usability.
- Designed to be part of a broader PostgreSQL configuration provider system.
Installation
- Add the library to your project through NuGet:
dotnet add package Webion.Extensions.Configuration.Npgsql.Abstractions --version 1.0.4
- Or, include it in your
.csproj
file manually:
<PackageReference Include="Webion.Extensions.Configuration.Npgsql.Abstractions" Version="1.0.4" />
Usage
AppSettingBaseDbo
At the core of the library is the AppSettingBaseDbo
class. This abstract class is used as a base for defining application settings stored in PostgreSQL. It provides several core properties for configuration management.
Example:
using Webion.Extensions.Configuration.Npgsql.Abstractions;
/// <summary>
/// Defines a specific application setting.
/// </summary>
public class MyAppSetting : AppSettingBaseDbo
{
public string? Category { get; set; }
}
// Example usage
var setting = new MyAppSetting
{
Key = "AppName",
Value = "My Application",
Description = "Specifies the name of the application.",
Environment = "Development",
Category = "General"
};
The properties of AppSettingBaseDbo
are:
- Key: The unique key for the setting.
- Value: The value associated with the setting.
- Description (optional): Additional details about what the setting represents.
- Environment: Indicates the deployment environment where the setting applies (e.g.,
Development
,Production
).
Versioning
The current version of the library is 1.0.4, and it follows Semantic Versioning. Future updates will include enhancements and possible integrations with other Webion Extensions.
Licensing
This library is distributed under the MIT License. More details are available in the MIT License file.
Repository
The source code is hosted on GitHub: https://github.com/webion-hub/Webion.Extensions
For reporting issues or contributing to the project, visit the repository.
Acknowledgments
Created and maintained by Webion SRL. This library is part of the company's efforts to simplify configuration management in .NET applications.
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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Webion.Extensions.Configuration.Npgsql.Abstractions:
Package | Downloads |
---|---|
Webion.Extensions.Configuration.Npgsql
Postgres configuration provider |
GitHub repositories
This package is not used by any popular GitHub repositories.