Beispiel #1
0
 /// <summary>
 /// To traction wrapper
 /// </summary>
 /// <param name="transaction"></param>
 /// <param name="operator"></param>
 /// <returns></returns>
 public static ITransactionWrapper ToTransactionWrapper(this IDbContextTransaction transaction, TransactionAppendOperator @operator)
 {
     transaction.CheckNull(nameof(transaction));
     return(TransactionWrapper.CreateFromTransaction(transaction.GetDbTransaction(), @operator));
 }
Beispiel #2
0
 /// <summary>
 /// To traction wrapper
 /// </summary>
 /// <param name="transaction"></param>
 /// <returns></returns>
 public static ITransactionWrapper ToTransactionWrapper(this IDbContextTransaction transaction)
 {
     transaction.CheckNull(nameof(transaction));
     return(TransactionWrapper.CreateFromTransaction(transaction.GetDbTransaction()));
 }