Exemple #1
0
 public Task UsingConnection <T>(DbOptions <T> options, Func <MySqlConnection, Task> action)
 {
     return(SqlHelper.WrapSqlException(() => _dbConnectionFactory.UsingConnection(options, action)));
 }
Exemple #2
0
 public Task <T> UsingConnection <T, TOpts>(DbOptions <TOpts> options, Func <MySqlConnection, Task <T> > func)
 {
     return(SqlHelper.WrapSqlException(() => _dbConnectionFactory.UsingConnection(options, func)));
 }
Exemple #3
0
 protected BaseRepository(IOptions <DbOptions> dbOptions, ILogger logger)
 {
     Logger     = logger;
     _dbOptions = dbOptions.Value;
 }