VOOZH about

URL: https://www.nuget.org/packages/Raycynix.Extensions.Database.AspNetCore.Identity/

⇱ NuGet Gallery | Raycynix.Extensions.Database.AspNetCore.Identity 2.1.0




👁 Image
Raycynix.Extensions.Database.AspNetCore.Identity 2.1.0

dotnet add package Raycynix.Extensions.Database.AspNetCore.Identity --version 2.1.0
 
 
NuGet\Install-Package Raycynix.Extensions.Database.AspNetCore.Identity -Version 2.1.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.AspNetCore.Identity" Version="2.1.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Raycynix.Extensions.Database.AspNetCore.Identity" Version="2.1.0" />
 
Directory.Packages.props
<PackageReference Include="Raycynix.Extensions.Database.AspNetCore.Identity" />
 
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.AspNetCore.Identity --version 2.1.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Raycynix.Extensions.Database.AspNetCore.Identity, 2.1.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.AspNetCore.Identity@2.1.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.AspNetCore.Identity&version=2.1.0
 
Install as a Cake Addin
#tool nuget:?package=Raycynix.Extensions.Database.AspNetCore.Identity&version=2.1.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Raycynix.Extensions.Database.AspNetCore.Identity

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.

What It Provides

  • Default RaycynixIdentityDatabaseContext based on ASP.NET Core Identity.
  • Generic identity contexts for custom users, roles, keys, claims, logins, and tokens.
  • AddRaycynixIdentityDatabase registration methods with strict identity-context constraints.
  • Raycynix model assembly discovery and configurator execution.
  • Provider validation, database initialization, migrations assembly selection, and model-cache integration inherited from 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.

Installation Shape

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();

Default Identity Context

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();

Custom User Type

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();

Custom User, Role, And Key

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();

Fully Customized Identity Entities

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.

Model And Migrations Assemblies

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 Initialization

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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

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.