Finbuckle.MultiTenant.Identity.EntityFrameworkCore/MultiTenantIdentityDbContext.cs

Finbuckle.MultiTenant · src/Finbuckle.MultiTenant.Identity.EntityFrameworkCore/MultiTenantIdentityDbContext.cs · csharp · Apache-2.0
database

Provides a base Identity DbContext that automatically enforces tenant isolation for all identity-related entities.

// Source: https://github.com/Finbuckle/Finbuckle.MultiTenant | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright Finbuckle LLC, Andrew White, and Contributors.
// Refer to the solution LICENSE file for more information.

using Finbuckle.MultiTenant.Abstractions;
using Finbuckle.MultiTenant.EntityFrameworkCore;
using Finbuckle.MultiTenant.EntityFrameworkCore.Extensions;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;

namespace Finbuckle.MultiTenant.Identity.EntityFrameworkCore;

/// <summary>
/// An Identity database context that enforces tenant integrity on multi-tenant entity types.
/// 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key