IDatabaseService.transaction<T>(work: (uow: IUnitOfWork) => Promise<T>,options?: TransactionOptions): Promise<T>
Execute the work callback within a database transaction.
On success the transaction commits and the callback result is returned. On error the transaction rolls back and the error propagates.
work: (uow: IUnitOfWork) => Promise<T>
Function receiving a transaction-scoped Unit of Work
optional
options: TransactionOptions
Optional transaction settings, including requested isolation
Promise<T>
The result of the work callback