Tenantry ProAPI reference
TenantStrategy enum
Namespace: Tenantry.Pro.Strategies.MixedMode · Package: Tenantry.Pro · API reference
Specifies which isolation strategy a tenant uses in mixed-mode deployments.
public enum TenantStrategyValues
| Value | Description |
|---|---|
Shared = 0 | The tenant shares the default database with row-level isolation. This is the default Core behaviour — no dedicated database or schema is provisioned. MixedStrategyResolver<TKey>.ResolveConnectionString and MixedStrategyResolver<TKey>.ResolveSchemaName both return null. |
Database = 1 | The tenant has its own dedicated database. |
Schema = 2 | The tenant uses a dedicated schema in a shared database. |
MixedStrategyResolver<TKey> class
Resolves the connection string or schema name for the tenant currently in scope, delegating to the appropriate underlying resolver based on the tenant's assigned strategy.
ISchemaNameResolver<TKey> interface
Resolves the SQL schema name for the tenant currently in scope.