Table of Contents

Interface ICustomizingTenantDataIsolation

Namespace
GroupeIsa.Neos.Shared.MultiTenant
Assembly
GroupeIsa.Neos.Shared.dll

Provides a way to customize tenant data isolation in multi-tenant applications.

public interface ICustomizingTenantDataIsolation

Properties

TenantQueryFilter

Gets the tenant query filter that replaces the default tenant data isolation, or null to keep the default isolation.

Expression<Func<NeosTenantInfo, string, bool>>? TenantQueryFilter { get; }

Property Value

Expression<Func<NeosTenantInfo, string, bool>>

Remarks

The first parameter is the tenant of the current query and the second one is the tenant identifier of the row. The filter is stored in the Entity Framework model, which is shared by all the tenants of the process: it must read the current tenant from its first parameter and must not capture any variable, field or property, otherwise the model build fails.