What problem does it solve?
XAF Multi-tenancy enables SaaS applications to serve multiple organizations with strict database isolation (separate DB per tenant) while sharing a single application codebase. It provides host UI for tenant administration and tenant UI for data access, backed by ITenantProvider and built-in tenant resolvers to route requests correctly.
Core Features & Use Cases
- Separate DB per tenant for strong isolation and security.
- Built-in tenant resolvers (TenantByEmailResolver, TenantByUserNameResolver) to determine the tenant from user identity.
- ITenantProvider and per-tenant connection strings to route data access automatically.
- Scoped services to avoid cross-tenant state and simplify per-tenant behavior.
- Suitable for SaaS scenarios with per-tenant data partitioning, tenant onboarding, and admin roles management.
Quick Start
Add multi-tenancy to your XAF app by configuring AddMultiTenancy with a TenantResolver and migrate each tenant database.