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
                    
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="Webion.Extensions.Configuration.Npgsql.Abstractions" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Webion.Extensions.Configuration.Npgsql.Abstractions" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Webion.Extensions.Configuration.Npgsql.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Webion.Extensions.Configuration.Npgsql.Abstractions --version 1.0.4
                    
#r "nuget: Webion.Extensions.Configuration.Npgsql.Abstractions, 1.0.4"
                    
#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.
#addin nuget:?package=Webion.Extensions.Configuration.Npgsql.Abstractions&version=1.0.4
                    
Install Webion.Extensions.Configuration.Npgsql.Abstractions as a Cake Addin
#tool nuget:?package=Webion.Extensions.Configuration.Npgsql.Abstractions&version=1.0.4
                    
Install Webion.Extensions.Configuration.Npgsql.Abstractions as a Cake Tool

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

  1. Add the library to your project through NuGet:
dotnet add package Webion.Extensions.Configuration.Npgsql.Abstractions --version 1.0.4
  1. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last updated
1.0.4 316 4/13/2025
1.0.3 176 4/13/2025
1.0.2 172 4/13/2025
1.0.1 175 4/13/2025
1.0.0 316 4/13/2025