コード例 #1
0
 private OneWorldDbTransaction(
     Guid transactionId,
     int transactionNumber,
     IDbConnection dbConnection,
     IsolationLevel isolationLevel,
     OneWorldDbClientManager <TDbContext> oneWorldDbClientManager,
     Func <IDbConnection, IDbTransaction, TDbContext> dbContextFactory,
     ILogger <OneWorldDbTransaction <TDbContext> > logger)
 {
     TransactionId            = transactionId;
     TransactionNumber        = transactionNumber;
     _dbConnection            = dbConnection;
     IsolationLevel           = isolationLevel;
     _oneWorldDbClientManager = oneWorldDbClientManager;
     _dbContextFactory        = dbContextFactory;
     _logger = logger;
 }
コード例 #2
0
 CreateOneWorldDbTransaction(
     Guid transactionId,
     int transactionNumber,
     IDbConnection dbConnection,
     IsolationLevel isolationLevel,
     OneWorldDbClientManager <TDbContext> oneWorldDbClientManager,
     Func <IDbConnection, IDbTransaction, TDbContext> dbContextFactory,
     ILogger <OneWorldDbTransaction <TDbContext> > logger)
 {
     return(new OneWorldDbTransaction <TDbContext>(
                transactionId,
                transactionNumber,
                dbConnection,
                isolationLevel,
                oneWorldDbClientManager,
                dbContextFactory,
                logger));
 }