public NhTransaction(ITransaction transaction, TransactionCloseType closeType) : base(closeType) { if (transaction == null) throw new ArgumentNullException("transaction"); _transaction = transaction; }
public EfTransaction(DbContextTransaction transaction, TransactionCloseType closeType) : base(closeType) { if (transaction == null) { throw new ArgumentNullException("transaction"); } _transaction = transaction; }
public ITransaction BeginTransaction(TransactionCloseType closeType = TransactionCloseType.Auto) { return(new EfTransaction(DbContext.BeginTransaction(), closeType)); }
public ITransaction BeginTransaction(TransactionCloseType closeType = TransactionCloseType.Auto) { return(new NhTransaction(Session.BeginTransaction(), closeType)); }
protected TransactionBase(TransactionCloseType closeType) { _closeType = closeType; }
public ITransaction BeginTransaction(TransactionCloseType closeType = TransactionCloseType.Auto) { return new EfTransaction(DbContext.BeginTransaction(), closeType); }