Table of Contents

TMultiTenantPoolProvider Class

Simple ITenantDBPoolProvider that keeps one connection pool per tenant, created on demand by an ITenantDBPoolFactory.

Remarks

Pools are cached forever by tenant id and there is no tenant catalog involved. For catalog-based routing with status enforcement, caching and invalidation, use Aurelius.Tenancy.Provider.TTenantPoolProvider instead.

Syntax

Unit: Aurelius.Tenancy.Pool

TMultiTenantPoolProvider = class(TInterfacedObject, ITenantDBPoolProvider);

Constructors

Name Description
Create Creates a new TMultiTenantPoolProvider instance.

Methods

Name Description
GetPool Returns the connection pool of a tenant, creating it through the factory on first access.