MultitenancyExtensions

Provides helper methods for multitenancy operations.

Namespace:
KpokPatagon.Multitenancy
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
Yes

Methods

IsMultitenancyDisabled

Indicates whether multi-tenancy is disabled by checking if tenant.Id is equals to Int32.MinValue.

Signature:
public Boolean IsMultitenancyDisabled(tenant)
Parameters
Name Type Summary
tenant ITenant

IsMultitenancyEnabled

Indicates whether multi-tenancy is enabled by checking if tenant.Id is greather than zero.

Signature:
public Boolean IsMultitenancyEnabled(tenant)
Parameters
Name Type Summary
tenant ITenant

ReplaceTenantName

Replaces the {tenant} placeholder in value with tenant.Name or string.Empty if multi-tenancy is disabled.

Signature:
public String ReplaceTenantName(value, tenant)
Parameters
Name Type Summary
value String
tenant ITenant