What problem does it solve?
ABP multi-tenancy setup guidance solves the confusion around correctly resolving the current tenant and ensuring data isolation between Host and Tenant contexts without leaking or mixing tenant data.
Core Features & Use Cases
- Tenant identification & scope: Explains how
IMultiTenant with nullable TenantId and ICurrentTenant drive correct behavior for Host vs Tenant data.
- Tenant resolution strategies: Covers resolver ordering and the common ways to determine tenant (user claims, query string, route, header, cookie, and subdomain/domain patterns), including custom resolvers and fallback tenant.
- Data filtering control: Shows how ABP’s multi-tenancy filter works and how to disable it safely with
IDataFilter.Disable<IMultiTenant>() for specific cross-tenant/admin use cases.
- Database isolation models: Compares single database, database-per-tenant, and hybrid approaches and what they imply for implementation choices.
Quick Start
Ask an AI coding assistant to configure ABP Framework v10.4 multi-tenancy by enabling AbpMultiTenancyOptions, implementing tenant-aware entities with IMultiTenant, and setting up a subdomain tenant resolver while ensuring Host operations use CurrentTenant.Change(null).