APF.Core.Clean.Database
1.0.0-Beta-09
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
<PackageReference Include="APF.Core.Clean.Database" Version="1.0.0-Beta-09" />
<PackageVersion Include="APF.Core.Clean.Database" Version="1.0.0-Beta-09" />
<PackageReference Include="APF.Core.Clean.Database" />
paket add APF.Core.Clean.Database --version 1.0.0-Beta-09
#r "nuget: APF.Core.Clean.Database, 1.0.0-Beta-09"
#:package APF.Core.Clean.Database@1.0.0-Beta-09
#addin nuget:?package=APF.Core.Clean.Database&version=1.0.0-Beta-09&prerelease
#tool nuget:?package=APF.Core.Clean.Database&version=1.0.0-Beta-09&prerelease
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
- Clone the repo
- Navigate to the root directory
- 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 | 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. 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. |
-
net8.0
- APF.Core.Clean.Common (>= 1.0.0-Beta-30)
- Dapper (>= 2.1.66)
- MySqlConnector (>= 2.4.0)
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