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