Interface ICRUDTransactionOperations
Describes an entity that performs single (not in transaction/batch)CRUD operations
Assembly: Azos.dll
Syntax
public interface ICRUDTransactionOperations
Properties
SupportsTransactions
Returns true when backend supports transactions. Even if false returned, CRUDDatastore supports CRUDTransaction return from BeginTransaction()
in which case statements may not be sent to destination until a call to Commit()
Declaration
bool SupportsTransactions { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
BeginTransaction(IsolationLevel, TransactionDisposeBehavior)
Returns a transaction object for backend. Even if backend does not support transactions internally, CRUDTransactions save changes
into the store on commit only
Declaration
CRUDTransaction BeginTransaction(IsolationLevel iso = IsolationLevel.ReadCommitted, TransactionDisposeBehavior behavior = TransactionDisposeBehavior.CommitOnDispose)
Parameters
Returns
BeginTransactionAsync(IsolationLevel, TransactionDisposeBehavior)
Returns a transaction object for backend. Even if backend does not support transactions internally, CRUDTransactions save changes
into the store on commit only
Declaration
Task<CRUDTransaction> BeginTransactionAsync(IsolationLevel iso = IsolationLevel.ReadCommitted, TransactionDisposeBehavior behavior = TransactionDisposeBehavior.CommitOnDispose)
Parameters
Returns
Extension Methods