![]() |
VOOZH | about |
dotnet add package Raycynix.Extensions.Database.AspNetCore.Identity --version 2.1.0
NuGet\Install-Package Raycynix.Extensions.Database.AspNetCore.Identity -Version 2.1.0
<PackageReference Include="Raycynix.Extensions.Database.AspNetCore.Identity" Version="2.1.0" />
<PackageVersion Include="Raycynix.Extensions.Database.AspNetCore.Identity" Version="2.1.0" />Directory.Packages.props
<PackageReference Include="Raycynix.Extensions.Database.AspNetCore.Identity" />Project file
paket add Raycynix.Extensions.Database.AspNetCore.Identity --version 2.1.0
#r "nuget: Raycynix.Extensions.Database.AspNetCore.Identity, 2.1.0"
#:package Raycynix.Extensions.Database.AspNetCore.Identity@2.1.0
#addin nuget:?package=Raycynix.Extensions.Database.AspNetCore.Identity&version=2.1.0Install as a Cake Addin
#tool nuget:?package=Raycynix.Extensions.Database.AspNetCore.Identity&version=2.1.0Install as a Cake Tool
ASP.NET Core Identity integration for Raycynix.Extensions.Database.
This package adds Raycynix-compatible IdentityDbContext implementations and service registration extensions for applications that store ASP.NET Core Identity data through the Raycynix database infrastructure.
RaycynixIdentityDatabaseContext based on ASP.NET Core Identity.AddRaycynixIdentityDatabase registration methods with strict identity-context constraints.Raycynix.Extensions.Database.This package does not configure authentication, authorization, cookies, token handlers, or AddIdentity. It only registers the EF Core database context and Raycynix database infrastructure used by ASP.NET Core Identity.
Use this package together with one Raycynix database provider package, for example:
using Raycynix.Extensions.Database.AspNetCore.Identity;
using Raycynix.Extensions.Database.PostgreSql;
builder.Services
.AddRaycynixIdentityDatabase(builder.Configuration)
.AddPostgreSql();
The default context uses ASP.NET Core Identity's standard IdentityDbContext shape.
builder.Services
.AddRaycynixIdentityDatabase(builder.Configuration, options =>
{
options.UseMigrations = true;
options.EnableSeed = false;
})
.AddSqlite();
For a custom string-key user, use the generic Raycynix context:
using Microsoft.AspNetCore.Identity;
using Raycynix.Extensions.Database.AspNetCore.Identity;
public sealed class ApplicationUser : IdentityUser
{
public DateTime CreatedAtUtc { get; set; }
}
builder.Services
.AddRaycynixIdentityDatabase<RaycynixIdentityDatabaseContext<ApplicationUser>>(
builder.Configuration)
.AddPostgreSql();
For a custom key type, use the TUser, TRole, TKey context:
using Microsoft.AspNetCore.Identity;
using Raycynix.Extensions.Database.AspNetCore.Identity;
public sealed class ApplicationUser : IdentityUser<Guid>
{
}
public sealed class ApplicationRole : IdentityRole<Guid>
{
}
builder.Services
.AddRaycynixIdentityDatabase<
RaycynixIdentityDatabaseContext<ApplicationUser, ApplicationRole, Guid>>(
builder.Configuration)
.AddPostgreSql();
The package also includes a fully generic context for custom claim, role mapping, login, role claim, and token entity types:
RaycynixIdentityDatabaseContext<
TUser,
TRole,
TKey,
TUserClaim,
TUserRole,
TUserLogin,
TRoleClaim,
TUserToken>
All Raycynix identity contexts implement IRaycynixIdentityDatabaseContext, which keeps AddRaycynixIdentityDatabase scoped to Identity contexts instead of arbitrary EF Core DbContext types.
Use marker types when model configurators and migrations live in known assemblies:
builder.Services
.AddRaycynixIdentityDatabase<
RaycynixIdentityDatabaseContext<ApplicationUser, ApplicationRole, Guid>,
ModelAssemblyMarker,
MigrationsAssemblyMarker>(builder.Configuration)
.AddMsSql();
Use explicit assemblies when markers are not convenient:
builder.Services
.AddRaycynixIdentityDatabase<RaycynixIdentityDatabaseContext>(
builder.Configuration,
migrationsAssembly,
modelAssembly)
.AddSqlite();
Additional configurator assemblies can be registered through:
builder.Services.AddRaycynixDatabaseAssembly<MyModelMarker>();
Database creation and migration behavior is controlled by DatabaseConfiguration, the same as in the core database package. In ASP.NET Core applications, use the startup helper from Raycynix.Extensions.Database.AspNetCore when you want initialization during application startup:
await app.InitializeRaycynixDatabaseAsync();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.0 | 86 | 6/9/2026 |
Added ASP.NET Core Identity database integration with default and generic Raycynix IdentityDbContext implementations, strict identity-context registration, model configurator discovery, provider validation, initialization, and model-cache integration.