public EmailConnectorRepository(DapperDbContext context)
 {
     _context = context;
 }
Ejemplo n.º 2
0
 public UnitOfWork(IOptions <DbSetting> optionsAccessor)
 {
     _dbSetting  = optionsAccessor.Value;
     _connection = new MySqlConnection(_dbSetting.ConnectionString);
     _dbContext  = new DapperDbContext(_connection, _dbSetting.Timeout);
 }