Docs
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 TenantStrategy

Values

ValueDescription
Shared = 0The 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 = 1The tenant has its own dedicated database.
Schema = 2The tenant uses a dedicated schema in a shared database.

On this page