/// <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)); }
/// <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())); }