Genocs.Persistence.EFCore
9.0.2
Requires NuGet 5.0.0 or higher.
dotnet add package Genocs.Persistence.EFCore --version 9.0.2
NuGet\Install-Package Genocs.Persistence.EFCore -Version 9.0.2
<PackageReference Include="Genocs.Persistence.EFCore" Version="9.0.2" />
<PackageVersion Include="Genocs.Persistence.EFCore" Version="9.0.2" />
<PackageReference Include="Genocs.Persistence.EFCore" />
paket add Genocs.Persistence.EFCore --version 9.0.2
#r "nuget: Genocs.Persistence.EFCore, 9.0.2"
#:package Genocs.Persistence.EFCore@9.0.2
#addin nuget:?package=Genocs.Persistence.EFCore&version=9.0.2
#tool nuget:?package=Genocs.Persistence.EFCore&version=9.0.2
Genocs.Persistence.EFCore

EF Core repository and persistence integration for Genocs applications. Supports net10.0, net9.0, and net8.0.
This package is provider-agnostic and references no database driver. Install it together with the provider package matching your database:
| Provider package | DBProvider value |
|---|---|
Genocs.Persistence.EFCore.SqlServer |
mssql |
Genocs.Persistence.EFCore.PostgreSQL |
postgresql |
Genocs.Persistence.EFCore.MySql |
mysql (not yet supported on net10.0) |
Genocs.Persistence.EFCore.Sqlite |
sqlite |
Genocs.Persistence.EFCore.Oracle |
oracle |
Genocs.Persistence.EFCore.MongoDB |
mongodb (no migrations; seeding only) |
For Finbuckle-based multitenancy with a SQL Server tenant store, add Genocs.Persistence.EFCore.MultiTenancy.SqlServer.
Installation
dotnet add package Genocs.Persistence.EFCore
dotnet add package Genocs.Persistence.EFCore.SqlServer
Getting Started
Register the provider, then wire EF Core persistence. Provider selection is config-driven via the DatabaseOptions section:
builder.Services.AddSqlServerDbProvider();
builder.AddGenocs()
.AddEFCorePersistence();
{
"DatabaseOptions": {
"DBProvider": "mssql",
"ConnectionString": "Server=localhost;Database=app;Integrated Security=True;",
"AutoApplyMigrations": false
}
}
Relational providers expect migrations in a Migrators.* assembly (e.g. Migrators.MSSQL). With AutoApplyMigrations set to false (the default), pending migrations stop the host at startup instead of being applied.
Main Entry Points
AddEFCorePersistenceIEFCoreDbProvider(implemented by the provider packages)IDatabaseInitializerICustomSeeder
Support
- Documentation Portal: https://genocs-blog.netlify.app/
- Documentation: https://github.com/Genocs/genocs-library/tree/main/docs
- Repository: https://github.com/Genocs/genocs-library
Release Notes
| 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 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 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
- Ardalis.Specification.EntityFrameworkCore (>= 9.3.1)
- Dapper (>= 2.1.79)
- Genocs.Core (>= 9.0.2)
- Mapster (>= 10.0.11)
- MediatR (>= 14.2.0)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.10)
- Serilog.Extensions.Hosting (>= 10.0.0)
-
net8.0
- Ardalis.Specification.EntityFrameworkCore (>= 9.3.1)
- Dapper (>= 2.1.79)
- Genocs.Core (>= 9.0.2)
- Mapster (>= 10.0.11)
- MediatR (>= 14.2.0)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.26)
- Serilog.Extensions.Hosting (>= 10.0.0)
-
net9.0
- Ardalis.Specification.EntityFrameworkCore (>= 9.3.1)
- Dapper (>= 2.1.79)
- Genocs.Core (>= 9.0.2)
- Mapster (>= 10.0.11)
- MediatR (>= 14.2.0)
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.15)
- Serilog.Extensions.Hosting (>= 10.0.0)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Genocs.Persistence.EFCore:
| Package | Downloads |
|---|---|
|
Genocs.Persistence.EFCore.SqlServer
Microsoft SQL Server database provider for Genocs EF Core persistence. |
|
|
Genocs.Persistence.EFCore.PostgreSQL
PostgreSQL database provider for Genocs EF Core persistence. |
|
|
Genocs.Persistence.EFCore.MongoDB
MongoDB database provider for Genocs EF Core persistence. |
|
|
Genocs.Persistence.EFCore.Sqlite
SQLite database provider for Genocs EF Core persistence. |
|
|
Genocs.Persistence.EFCore.Oracle
Oracle database provider for Genocs EF Core persistence. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.2 | 216 | 9/1/2026 |
| 9.0.1 | 128 | 7/18/2026 |
| 9.0.0 | 203 | 5/21/2026 |
| 9.0.0-beta009 | 140 | 5/11/2026 |
| 9.0.0-beta008 | 163 | 5/2/2026 |
| 9.0.0-beta007 | 129 | 4/29/2026 |
| 9.0.0-beta006 | 116 | 4/27/2026 |
| 9.0.0-beta005 | 114 | 4/26/2026 |
| 9.0.0-beta004 | 116 | 4/18/2026 |
| 9.0.0-beta003 | 144 | 4/5/2026 |
| 9.0.0-beta002 | 135 | 3/17/2026 |
| 9.0.0-beta001 | 147 | 2/28/2026 |
| 8.1.0 | 152 | 2/8/2026 |
| 8.0.0 | 2,650 | 11/23/2025 |
| 7.5.1 | 2,649 | 10/19/2025 |
| 7.5.0 | 5,380 | 10/12/2025 |
| 7.4.1 | 303 | 9/19/2025 |
| 7.4.0 | 313 | 9/19/2025 |
| 7.3.0 | 214 | 8/14/2025 |
| 7.2.5 | 235 | 5/1/2025 |
The change log and breaking changes are listed here.
https://github.com/Genocs/genocs-library/releases