Anarchy.Toolkit.Infrastructure.Persistence.Db
1.1.4
See the version list below for details.
dotnet add package Anarchy.Toolkit.Infrastructure.Persistence.Db --version 1.1.4
NuGet\Install-Package Anarchy.Toolkit.Infrastructure.Persistence.Db -Version 1.1.4
<PackageReference Include="Anarchy.Toolkit.Infrastructure.Persistence.Db" Version="1.1.4" />
<PackageVersion Include="Anarchy.Toolkit.Infrastructure.Persistence.Db" Version="1.1.4" />
<PackageReference Include="Anarchy.Toolkit.Infrastructure.Persistence.Db" />
paket add Anarchy.Toolkit.Infrastructure.Persistence.Db --version 1.1.4
#r "nuget: Anarchy.Toolkit.Infrastructure.Persistence.Db, 1.1.4"
#:package Anarchy.Toolkit.Infrastructure.Persistence.Db@1.1.4
#addin nuget:?package=Anarchy.Toolkit.Infrastructure.Persistence.Db&version=1.1.4
#tool nuget:?package=Anarchy.Toolkit.Infrastructure.Persistence.Db&version=1.1.4
Anarchy.Toolkit.Infrastructure.Persistence.Db
Provider-agnostic relational persistence infrastructure for toolkit database adapters.
dotnet add package Anarchy.Toolkit.Infrastructure.Persistence.Db
IDbDialect, connection-pool and options bases, unit of work, resilience policy and retry builder provide the common database layer.- Build repositories on the reader, writer and batch-writer bases; database health reports use the dialect's health-check SQL.
- Transactional outbox and event-store contracts, records and repository bases are included. Consumers supply provider-specific concrete repositories and SQL.
- Use a provider adapter for PostgreSQL, Oracle or MySQL, or implement a new dialect and adapter.
When to use it
Use this package when implementing a relational adapter or shared repository behavior. Most applications should reference a provider-specific adapter instead: this package supplies common policies and base classes but does not choose a driver, provision a schema or provide concrete SQL for an application's tables.
How to use it
- Select an existing provider, or implement
IDbDialect, connection-string and pool types, a unit of work, retry policy and provider-specific repository bases for a new database. - Derive concrete reader/writer repositories and provide their SQL and mappings. For event-store or outbox functionality, supply the provider-specific concrete repositories and embedded SQL as described in the provider guide.
- Configure reader and writer hosts, credentials, command timeout and resilience settings at the host.
DbConnectionOptions.MaximumPoolSizedefaults to 100 and is applied by the included providers. - Register the provider module and optional health reports, then inject the repository and unit-of-work abstractions into application services. Define transaction and retry boundaries explicitly, especially when an operation has non-database side effects.
See adding a database provider and the persistence notes, including known limitations.
Releases
1.1.4
- refactor(src): clean up code style across library packages
1.1.2
- build: migrate local automation to build tooling
1.1.1
- docs: expand package guides and release histories
- chore(deps): update AWS, Polly, and xUnit packages
1.1.0
- Added configurable maximum database connection pool size.
1.0.1
- Added a package-specific NuGet README.
1.0.0
- Introduced provider-agnostic relational repositories, units of work, connection configuration, event store support and health reporting.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Anarchy.Toolkit.Core (>= 1.0.5)
- Anarchy.Toolkit.Core.Events (>= 1.0.5)
- Anarchy.Toolkit.Core.Health (>= 1.0.5)
- Anarchy.Toolkit.Core.Observability (>= 1.0.5)
- Anarchy.Toolkit.Core.Persistence.Abstractions (>= 1.0.5)
- Dapper (= 2.1.79)
- Humanizer (>= 3.0.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Newtonsoft.Json (>= 13.0.4)
- Polly.Core (>= 8.9.1)
- Serilog (>= 4.4.0)
- Serilog.Sinks.Console (>= 6.1.1)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on Anarchy.Toolkit.Infrastructure.Persistence.Db:
| Package | Downloads |
|---|---|
|
Anarchy.Toolkit.Testing.Db
Provider-agnostic relational database test helpers (DbTestHelper: enum type handlers and table truncate/clear; DbOptionsMapper) for integration tests. |
|
|
Anarchy.Toolkit.Infrastructure.Persistence.Oracle
Oracle implementation of the relational persistence layer: dialect, connection string, connection pool, Unit of Work, resilience policy, repository bases and service health reports. |
|
|
Anarchy.Toolkit.Infrastructure.Persistence.Mysql
MySQL relational persistence adapter with connection pools, unit of work, resilience, repository bases and health reports. |
|
|
Anarchy.Toolkit.Infrastructure.Persistence.Postgres
PostgreSQL implementation of the relational persistence layer: dialect, connection string, connection pool, Unit of Work, resilience policy, repository bases and service health reports. |
|
|
Anarchy.Toolkit.Infrastructure.Persistence.Db.Mysql
MySQL relational persistence adapter with connection pools, unit of work, resilience, repository bases and health reports. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release.