Anarchy.Toolkit.Core.Persistence.Abstractions
1.0.4
See the version list below for details.
dotnet add package Anarchy.Toolkit.Core.Persistence.Abstractions --version 1.0.4
NuGet\Install-Package Anarchy.Toolkit.Core.Persistence.Abstractions -Version 1.0.4
<PackageReference Include="Anarchy.Toolkit.Core.Persistence.Abstractions" Version="1.0.4" />
<PackageVersion Include="Anarchy.Toolkit.Core.Persistence.Abstractions" Version="1.0.4" />
<PackageReference Include="Anarchy.Toolkit.Core.Persistence.Abstractions" />
paket add Anarchy.Toolkit.Core.Persistence.Abstractions --version 1.0.4
#r "nuget: Anarchy.Toolkit.Core.Persistence.Abstractions, 1.0.4"
#:package Anarchy.Toolkit.Core.Persistence.Abstractions@1.0.4
#addin nuget:?package=Anarchy.Toolkit.Core.Persistence.Abstractions&version=1.0.4
#tool nuget:?package=Anarchy.Toolkit.Core.Persistence.Abstractions&version=1.0.4
Anarchy.Toolkit.Core.Persistence.Abstractions
Persistence contracts for applications that should not depend on a particular database provider.
dotnet add package Anarchy.Toolkit.Core.Persistence.Abstractions
- Use the unit-of-work and async-local flow-context contracts to coordinate persistence operations.
- Define repositories against the supplied repository and storage-policy abstractions and exceptions.
- Choose a concrete provider from the toolkit's relational adapters or implement your own.
When to use it
Reference this package from application and domain-facing code that needs repository or transaction contracts but should not depend on a database driver. It defines boundaries, not a connection pool, SQL implementation or database schema.
How to use it
- Define application-specific repository interfaces and expose only the operations your use cases need. Implement them in an infrastructure project using the supplied reader, writer or batch contracts where appropriate.
- Coordinate related writes through the unit-of-work abstraction, and use the storage-policy and flow-context contracts when implementing an adapter.
- In the host, register a concrete provider such as
Infrastructure.Persistence.Postgres,Infrastructure.Persistence.OracleorInfrastructure.Persistence.Mysql. Supply connection and resilience options there, not in application code.
Select transaction boundaries deliberately: the abstractions do not provision databases, retry entire business operations or make external side effects transactional.
See the package catalogue and database provider guide.
Releases
1.0.4
- chore(docs): Update release notes
1.0.3
- build: migrate local automation to NUKE
1.0.2
- docs: expand package guides and release histories
1.0.1
- Added a package-specific NuGet README.
1.0.0
- Introduced repository and unit-of-work contracts, storage policies, flow context and persistence exceptions.
| 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.4)
- Humanizer (>= 3.0.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.14)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.14)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Anarchy.Toolkit.Core.Persistence.Abstractions:
| Package | Downloads |
|---|---|
|
Anarchy.Toolkit.Infrastructure.Persistence.Db
Provider-agnostic relational database implementation of the persistence abstraction: connection pool, Unit of Work, resilience policy, dialect contract, repository bases, service health reports, and the transactional outbox / event store (repository contracts, records, type-id cache, and repository bases; providers supply the dialect and the embedded SQL). |
|
|
Anarchy.Toolkit.Web
Shared REST API pipeline: startup bases, entry points, middleware, auth, swagger, and presentation helpers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release.