TTenantProvisioner.MoveTenantToShard Method
Points the tenant to another shard.
Remarks
Only the routing is changed; moving the tenant's data between shard databases is the application's job. Raises ETenantNotFound if the tenant is unknown.
Syntax
Unit: Aurelius.Tenancy.Provisioning
procedure TTenantProvisioner.MoveTenantToShard(const TenantId: string; const NewShardId: string);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | TenantId | string | The id of the tenant. |
| const | NewShardId | string | The id of the destination shard. |