Provides helper methods for multitenancy operations.
Indicates whether multi-tenancy is disabled by checking if tenant.Id is equals to Int32.MinValue.
public Boolean IsMultitenancyDisabled(tenant)| Name | Type | Summary |
|---|---|---|
| tenant | ITenant |
Indicates whether multi-tenancy is enabled by checking if tenant.Id is greather than zero.
public Boolean IsMultitenancyEnabled(tenant)| Name | Type | Summary |
|---|---|---|
| tenant | ITenant |
Replaces the {tenant} placeholder in value
with tenant.Name or string.Empty if
multi-tenancy is disabled.
public String ReplaceTenantName(value, tenant)| Name | Type | Summary |
|---|---|---|
| value | String | |
| tenant | ITenant |
In this document