Genocs.Persistence.EFCore 9.0.2

There is a newer prerelease version of this package available.
See the version list below for details.

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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Genocs.Persistence.EFCore" Version="9.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Genocs.Persistence.EFCore" Version="9.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Genocs.Persistence.EFCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Genocs.Persistence.EFCore --version 9.0.2
                    
#r "nuget: Genocs.Persistence.EFCore, 9.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Genocs.Persistence.EFCore@9.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Genocs.Persistence.EFCore&version=9.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Genocs.Persistence.EFCore&version=9.0.2
                    
Install as a Cake Tool

Genocs.Persistence.EFCore

Genocs Library Banner

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

  • AddEFCorePersistence
  • IEFCoreDbProvider (implemented by the provider packages)
  • IDatabaseInitializer
  • ICustomSeeder

Support

Release Notes

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Genocs.Persistence.EFCore:

Package Downloads
Genocs.Persistence.EFCore.PostgreSQL

PostgreSQL database provider for Genocs EF Core persistence.

Genocs.Persistence.EFCore.SqlServer

Microsoft SQL Server database provider for Genocs EF Core persistence.

Genocs.Persistence.EFCore.Oracle

Oracle 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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.1.0-beta02 186 10/24/2026
9.1.0-beta01 192 10/23/2026
9.0.2 256 9/1/2026
9.0.1 142 7/18/2026
9.0.0 213 5/21/2026
9.0.0-beta009 150 5/11/2026
9.0.0-beta008 173 5/2/2026
9.0.0-beta007 138 4/29/2026
9.0.0-beta006 126 4/27/2026
9.0.0-beta005 125 4/26/2026
9.0.0-beta004 127 4/18/2026
9.0.0-beta003 157 4/5/2026
9.0.0-beta002 147 3/17/2026
9.0.0-beta001 159 2/28/2026
8.1.0 163 2/8/2026
8.0.0 2,661 11/23/2025
7.5.1 2,661 10/19/2025
7.5.0 5,391 10/12/2025
7.4.1 316 9/19/2025
7.4.0 324 9/19/2025
Loading failed

The change log and breaking changes are listed here.
           https://github.com/Genocs/genocs-library/releases