Acontplus.Persistence.Common
1.0.2
See the version list below for details.
dotnet add package Acontplus.Persistence.Common --version 1.0.2
NuGet\Install-Package Acontplus.Persistence.Common -Version 1.0.2
<PackageReference Include="Acontplus.Persistence.Common" Version="1.0.2" />
<PackageVersion Include="Acontplus.Persistence.Common" Version="1.0.2" />
<PackageReference Include="Acontplus.Persistence.Common" />
paket add Acontplus.Persistence.Common --version 1.0.2
#r "nuget: Acontplus.Persistence.Common, 1.0.2"
#:package Acontplus.Persistence.Common@1.0.2
#addin nuget:?package=Acontplus.Persistence.Common&version=1.0.2
#tool nuget:?package=Acontplus.Persistence.Common&version=1.0.2
Acontplus.Persistence.Common
Common persistence abstractions and infrastructure for Acontplus .NET libraries. Includes generic repository, context factory, connection string provider, and mapping utilities for multi-provider support (SQL Server, PostgreSQL, etc).
🚀 Features
- Generic repository and context factory patterns
- Connection string provider abstraction and implementation
- Designed for multi-tenant, sharded, and cloud-native scenarios
- .NET 9+ compatible
📦 Installation
NuGet Package Manager
Install-Package Acontplus.Persistence.Common
.NET CLI
dotnet add package Acontplus.Persistence.Common
PackageReference
<ItemGroup>
<PackageReference Include="Acontplus.Persistence.Common" Version="1.0.0" />
</ItemGroup>
🎯 Quick Start
1. Register in DI
services.AddSingleton<IConnectionStringProvider, ConfigurationConnectionStringProvider>();
services.AddSingleton<IDbContextFactory<MyDbContext>, DbContextFactory<MyDbContext>>();
2. Use in Your Code
var contextFactory = serviceProvider.GetRequiredService<IDbContextFactory<MyDbContext>>();
var dbContext = contextFactory.GetContext("TenantA");
var connProvider = serviceProvider.GetRequiredService<IConnectionStringProvider>();
var connString = connProvider.GetConnectionString("DefaultConnection");
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
👨💻 Author
Ivan Paz - @iferpaz7
🏢 Company
Acontplus S.A.S. - Enterprise software solutions
Built with ❤️ for the .NET community
Product | Versions 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. |
-
net9.0
- Acontplus.Core (>= 1.3.2)
- Microsoft.EntityFrameworkCore (>= 9.0.7)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.7)
- Microsoft.Extensions.DependencyInjection (>= 9.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.7)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Acontplus.Persistence.Common:
Package | Downloads |
---|---|
Acontplus.Persistence.SqlServer
Advanced library for SQL Server persistence with Entity Framework Core integration. Includes repositories, context management, ADO.NET support, advanced error handling, and enterprise-ready data access patterns for SQL Server databases. |
|
Acontplus.Persistence.PostgreSQL
Advanced library for PostgreSQL persistence with Entity Framework Core integration. Includes repositories, context management, ADO.NET support, advanced error handling, and enterprise-ready data access patterns for PostgreSQL databases. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release: shared repository, context factory, and connection string provider for multi-provider .NET persistence.