Raycynix.Extensions.Database 0.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Raycynix.Extensions.Database --version 0.4.0
                    
NuGet\Install-Package Raycynix.Extensions.Database -Version 0.4.0
                    
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="Raycynix.Extensions.Database" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Raycynix.Extensions.Database" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Raycynix.Extensions.Database" />
                    
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 Raycynix.Extensions.Database --version 0.4.0
                    
#r "nuget: Raycynix.Extensions.Database, 0.4.0"
                    
#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 Raycynix.Extensions.Database@0.4.0
                    
#: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=Raycynix.Extensions.Database&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Raycynix.Extensions.Database&version=0.4.0
                    
Install as a Cake Tool

Raycynix.Extensions.Database

TeamCity build status

Raycynix.Extensions.Database is the core database package.

What it contains

  • AddRaycynixDatabase(...)
  • AddRaycynixDatabaseAssembly(...)
  • DatabaseBuilder.AddAssembly(...)
  • DatabaseContext
  • DatabaseConfiguration
  • provider-specific EF Core setup
  • IDatabaseInitializer
  • DatabaseInitializer

What it does not contain

  • WebApplication extensions
  • ASP.NET Core startup integration
  • generic-host startup integration

Usage

builder.Services.AddRaycynixDatabase(builder.Configuration, options =>
{
    options.Provider = DatabaseProvider.PostgreSql;
    options.UseMigrations = true;
});

If a reusable package contributes EF Core configurators to the shared DatabaseContext, register its assembly explicitly:

builder.Services.AddRaycynixDatabase(builder.Configuration)
    .AddAssembly<SomePackageMarker>();

This keeps a single shared DatabaseContext while allowing infrastructure packages to extend the model without creating their own context.

For static table names, configurators can declare the default mapping with DatabaseTableAttribute instead of calling ToTable(...) manually inside Configure(...).

For runtime overrides, GenericConfigurator<T> now exposes ConfigureEntity(modelBuilder, tableName), so a configurator can reuse the same default mapping logic while still supplying a table name from configuration.

If you want an explicit fluent call, use modelBuilder.Entity<T>().EntityName(tableName).

If you want to run initialization during startup, use one of these packages:

  • Raycynix.Extensions.Database.Hosting
  • Raycynix.Extensions.Database.AspNetCore
Product 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. 
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 Raycynix.Extensions.Database:

Package Downloads
Raycynix.Extensions.Database.Hosting

Generic host startup integration for Raycynix database initialization through IDatabaseInitializer.

Raycynix.Extensions.Messaging.Database

Database-backed messaging inbox and outbox persistence with ambient unit-of-work support, optimistic concurrency leasing, retention cleanup, and configuration-based setup on the shared Raycynix DatabaseContext.

Raycynix.Extensions.Database.MsSql

SQL Server provider integration for Raycynix.Extensions.Database with AddMsSql registration, SQL Server connection-string composition, and EF Core UseSqlServer configuration.

Raycynix.Extensions.Database.MySql

MySQL provider integration for Raycynix.Extensions.Database with AddMySql registration, MySQL connection-string composition, and EF Core UseMySQL configuration.

Raycynix.Extensions.Database.PostgreSql

PostgreSQL provider integration for Raycynix.Extensions.Database with AddPostgreSql registration, Npgsql connection-string composition, and EF Core UseNpgsql configuration.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 36 4/8/2026
0.4.0 37 4/8/2026