public DapperRepository(IDbConnection dbConnection, IAggregateEventsPublisher aggregateEventsPublisher, IDapperSqlGenerator dapperSqlGenerator = null) { this.dbConnection = dbConnection ?? throw new ArgumentNullException(nameof(dbConnection)); this.aggregateEventsPublisher = aggregateEventsPublisher; this.dapperSqlGenerator = dapperSqlGenerator; }
public DapperDataContext(IDbConnection dbConnection, IDapperSqlGenerator dapperSqlGenerator = null) { this.dbConnection = dbConnection ?? throw new ArgumentNullException(nameof(dbConnection)); this.dapperSqlGenerator = dapperSqlGenerator; }