# abp-multi-tenancy

> Claude/Codex skill by [@abpframework](https://omgskills.com/library/abpframework/index.md) · 14k stars · Updated 2026-11-01

ABP Multi-Tenancy - IMultiTenant interface, CurrentTenant, CurrentTenant.Change(), DataFilter.Disable(IMultiTenant), tenant resolution order, database-per-tenant. Use when working with multi-tenant features, tenant-specific data isolation, or switching tenant context.

Tags: abp, angular, architecture, aspnet, aspnet-core, aspnetcore, blazor, c-sharp, csharp, domain-driven-design, dotnet-core, framework, modular-monolith, multi-tenancy, saas

## Install

```sh
git clone https://github.com/abpframework/abp /tmp/abp && ln -s /tmp/abp/.claude/skills/abp-multi-tenancy ~/.claude/skills/abp-multi-tenancy
```

## From README

ABP Multi-Tenancy Docs: https://abp.io/docs/latest/framework/architecture/multi-tenancy Making Entities Multi-Tenant Implement IMultiTenant interface to make entities tenant-aware: Key points: TenantId is nullable - null means entity belongs to Host ABP automatically filters queries by current tenant ABP automatically sets TenantId when creating entities Accessing Current Tenant Use CurrentTenant property (available in base classes) or inject ICurrentTenant: Switching Tenant Context Use CurrentTenant.Change() to temporarily switch tenant (useful in host context): Important: Always use Change() with a using statement. Disabling Multi-Tenant Filter To query all tenants' data (only works with single database): Note: This doesn't work with separate databases per tenant.

## Links

- HTML page: https://omgskills.com/library/abpframework/abp/dot-claude/skills/abp-multi-tenancy/
- GitHub: https://github.com/abpframework/abp
- Author: [@abpframework](https://omgskills.com/library/abpframework/index.md)

## More from this repo

- [abp-angular](https://omgskills.com/library/abpframework/abp/dot-claude/skills/abp-angular/index.md) — ABP Angular UI patterns - generate-proxy, ListService, PermissionGuard, abpLocalization pipe, ConfirmationService,...
   - [@abpframework](https://omgskills.com/library/abpframework/index.md) · 14k stars
- [abp-app-nolayers](https://omgskills.com/library/abpframework/abp/dot-claude/skills/abp-app-nolayers/index.md) — ABP Single-Layer (No-Layers / nolayers) application template - single project structure, feature-based file...
   - [@abpframework](https://omgskills.com/library/abpframework/index.md) · 14k stars
- [abp-application-layer](https://omgskills.com/library/abpframework/abp/dot-claude/skills/abp-application-layer/index.md) — ABP Application Services, DTOs, CRUD service, object mapping (Mapperly/AutoMapper), validation, error handling.
   - [@abpframework](https://omgskills.com/library/abpframework/index.md) · 14k stars
