APF.Core.Clean.Database 1.0.0-Beta-09

This is a prerelease version of APF.Core.Clean.Database.
dotnet add package APF.Core.Clean.Database --version 1.0.0-Beta-09
                    
NuGet\Install-Package APF.Core.Clean.Database -Version 1.0.0-Beta-09
                    
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="APF.Core.Clean.Database" Version="1.0.0-Beta-09" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="APF.Core.Clean.Database" Version="1.0.0-Beta-09" />
                    
Directory.Packages.props
<PackageReference Include="APF.Core.Clean.Database" />
                    
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 APF.Core.Clean.Database --version 1.0.0-Beta-09
                    
#r "nuget: APF.Core.Clean.Database, 1.0.0-Beta-09"
                    
#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.
#:package APF.Core.Clean.Database@1.0.0-Beta-09
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=APF.Core.Clean.Database&version=1.0.0-Beta-09&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=APF.Core.Clean.Database&version=1.0.0-Beta-09&prerelease
                    
Install as a Cake Tool

Core.Clean.Database

Core.Clean.Database is an infrastructure-level package that provides MySQL-specific configurations, helpers, and service implementations. It centralizes database connection handling, extensions, and feature-level services that interact directly with the database. This package depends on Core.Clean.Common for its abstractions and shared contracts.

Projects

src/Aurionpro.PaymentFramework.Core.Clean.Database

  • Aurionpro.PaymentFramework.Core.Clean.Database

tests/Aurionpro.PaymentFramework.Core.Clean.Database.Tests

  • Aurionpro.PaymentFramework.Core.Clean.Database.Tests

Purpose

  • Centralizes all MySQL-specific boilerplate code such as connection factories and settings.
  • Provides extension helpers to simplify database access and data retrieval.
  • Implements data access services (e.g., API key validation, feature access, system info) defined as abstractions in Core.Clean.Common.
  • Enables clean separation between abstractions (in Common) and implementations (in Database) for improved maintainability.
  • Supports infrastructure setup for microservices using MySQL as their persistence layer.

Features

  • Database Settings: Provides DatabaseSettings and connection string builders for MySQL configuration.
  • Connection Factory: Includes IDbConnectionFactory and MySqlConnectionFactory for creating and managing database connections.
  • Extensions:MySqlDataReaderExtensions for safer field retrieval and null-handling.
  • Service Implementations:Implements abstractions like IApiCredentialValidatorService, IAccessRightsService, and ISystemInfoHelper.Provides data access logic for microservice-level authentication and feature control.
  • Structured Organization: Common folder contains boilerplate code and reusable components. Implementations folder contains implementations of feature-level services.

Getting Started

  1. Clone the repo
  2. Navigate to the root directory
  3. Run:
dotnet build
dotnet test

register database dependencies in a microservice

using Aurionpro.PaymentFramework.Core.Clean.Database.Common.Extensions;
using Aurionpro.PaymentFramework.Core.Clean.Database.Implementations.Extensions;

var builder = WebApplication.CreateBuilder(args);

// Register common database dependencies
builder.Services.AddDatabaseSettings(builder.Configuration);

// Register Implementations-specific services
builder.Services.AddCoreCleanDatabase(builder.Configuration);
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.  net9.0 was computed.  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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on APF.Core.Clean.Database:

Package Downloads
APF.Core.Clean.ApiGateway

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-Beta-09 358 11/20/2025
1.0.0-Beta-08 567 11/11/2025
1.0.0-Beta-07 126 11/7/2025
1.0.0-Beta-06 252 10/28/2025
1.0.0-Beta-05 193 10/13/2025
1.0.0-Beta-04 149 10/9/2025
1.0.0-Beta-03 116 10/9/2025
1.0.0-Beta-02 113 10/9/2025
1.0.0-Beta-01 117 10/9/2025

# Changelog

## 1.0.0-Beta-09 2025-11-21

- Dapper GridReader issue fix of dispose for IMultiResultReader implementation