IFdbTenant
Namespace: FoundationDB.Client · interface
Implements: IFdbRetryable, IFdbReadOnlyRetryable
Database connection context.
Properties
Database
IFdbDatabase Database { get; }
Database instance that created this tenant
Name
FdbTenantName Name { get; }
Name of the tenant
Methods
BeginTransaction
IFdbTransaction BeginTransaction(FdbTransactionMode mode, CancellationToken ct, FdbOperationContext context = null)
Start a new transaction on this tenant, with the specified mode
mode— Mode of the transaction (read-only, read-write, ....)ct— Optional cancellation token that can abort all pending async operations started by this transaction.context— Existing parent context, if the transaction needs to be linked with a retry loop, or a parent transaction. If null, will create a new standalone context valid only for this transaction
Returns: New transaction instance that can read from or write to the database.