public DefaultTransactionFactory(Func <IDbConnection> connectionFactory, int dbType) { _dbType = dbType; _dbGate = new ErManagement.ErMapper.DbGate(_dbType); _connectionFactory = connectionFactory; }
public Transaction(ITransactionFactory factory, IDbTransaction transaction) { this._transactionId = Guid.NewGuid(); this._factory = factory; this._transaction = transaction; this._connection = transaction.Connection; this._dbGate = factory.DbGate; }