コード例 #1
0
 public DapperRepository(IDbConnection dbConnection, IAggregateEventsPublisher aggregateEventsPublisher, IDapperSqlGenerator dapperSqlGenerator = null)
 {
     this.dbConnection             = dbConnection ?? throw new ArgumentNullException(nameof(dbConnection));
     this.aggregateEventsPublisher = aggregateEventsPublisher;
     this.dapperSqlGenerator       = dapperSqlGenerator;
 }
コード例 #2
0
 public DapperDataContext(IDbConnection dbConnection, IDapperSqlGenerator dapperSqlGenerator = null)
 {
     this.dbConnection       = dbConnection ?? throw new ArgumentNullException(nameof(dbConnection));
     this.dapperSqlGenerator = dapperSqlGenerator;
 }