コード例 #1
0
 public Dictionary <TKey, TValue> Dictionary <TKey, TValue>(Sql Sql)
 {
     return(RetryPolicy.ExecuteAction(() => InternalDb.Dictionary <TKey, TValue>(Sql)));
 }
コード例 #2
0
 public void BeginTransaction()
 {
     InternalDb.BeginTransaction();
 }
コード例 #3
0
 public void AbortTransaction()
 {
     InternalDb.AbortTransaction();
 }
コード例 #4
0
 public DbCommand CreateCommand(DbConnection connection, CommandType commandType, string sql, params object[] args)
 {
     return(InternalDb.CreateCommand(connection, commandType, sql, args));
 }
コード例 #5
0
 public ITransaction GetTransaction(IsolationLevel isolationLevel)
 {
     return(InternalDb.GetTransaction(isolationLevel));
 }
コード例 #6
0
 public Task <T> ExecuteScalarAsync <T>(Sql sql)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.ExecuteScalarAsync <T>(sql)));
 }
コード例 #7
0
 public Task <int> ExecuteAsync(Sql sql)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.ExecuteAsync(sql)));
 }
コード例 #8
0
 public Tuple <List <T1>, List <T2>, List <T3>, List <T4> > FetchMultiple <T1, T2, T3, T4>(Sql sql)
 {
     return(RetryPolicy.ExecuteAction(() => InternalDb.FetchMultiple <T1, T2, T3, T4>(sql)));
 }
コード例 #9
0
 public Task <T> SingleOrDefaultByIdAsync <T>(object primaryKey)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.SingleOrDefaultByIdAsync <T>(primaryKey)));
 }
コード例 #10
0
 public TRet FetchMultiple <T1, T2, T3, T4, TRet>(Func <List <T1>, List <T2>, List <T3>, List <T4>, TRet> cb, Sql sql)
 {
     return(RetryPolicy.ExecuteAction(() => InternalDb.FetchMultiple(cb, sql)));
 }
コード例 #11
0
 public Tuple <List <T1>, List <T2>, List <T3>, List <T4> > FetchMultiple <T1, T2, T3, T4>(string sql, params object[] args)
 {
     return(RetryPolicy.ExecuteAction(() => InternalDb.FetchMultiple <T1, T2, T3, T4>(sql, args)));
 }
コード例 #12
0
 public TRet FetchMultiple <T1, T2, T3, T4, TRet>(Func <List <T1>, List <T2>, List <T3>, List <T4>, TRet> cb, string sql, params object[] args)
 {
     return(RetryPolicy.ExecuteAction(() => InternalDb.FetchMultiple(cb, sql, args)));
 }
コード例 #13
0
 public bool Exists <T>(object primaryKey)
 {
     return(RetryPolicy.ExecuteAction(() => InternalDb.Exists <T>(primaryKey)));
 }
コード例 #14
0
 public Dictionary <TKey, TValue> Dictionary <TKey, TValue>(string sql, params object[] args)
 {
     return(RetryPolicy.ExecuteAction(() => InternalDb.Dictionary <TKey, TValue>(sql, args)));
 }
コード例 #15
0
 public Task <List <T> > SkipTakeAsync <T>(long skip, long take, Sql sql)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.SkipTakeAsync <T>(skip, take, sql)));
 }
コード例 #16
0
 public Task <IEnumerable <T> > QueryAsync <T>(string sql, object[] args)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.QueryAsync <T>(sql, args)));
 }
コード例 #17
0
 public Task <T> ExecuteScalarAsync <T>(string sql, object[] args)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.ExecuteScalarAsync <T>(sql, args)));
 }
コード例 #18
0
 public Task <IEnumerable <T> > QueryAsync <T>(Sql sql)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.QueryAsync <T>(sql)));
 }
コード例 #19
0
 public Task <int> ExecuteAsync(string sql, params object[] args)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.ExecuteAsync(sql, args)));
 }
コード例 #20
0
 public Task <List <T> > FetchAsync <T>(string sql, params object[] args)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.FetchAsync <T>(sql, args)));
 }
コード例 #21
0
 public void AddParameter(DbCommand cmd, object value)
 {
     InternalDb.AddParameter(cmd, value);
 }
コード例 #22
0
 public Task <List <T> > FetchAsync <T>()
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.FetchAsync <T>()));
 }
コード例 #23
0
 public ITransaction GetTransaction()
 {
     return(InternalDb.GetTransaction());
 }
コード例 #24
0
 public Task <List <T> > FetchAsync <T>(long page, long itemsPerPage, string sql, params object[] args)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.FetchAsync <T>(page, itemsPerPage, sql, args)));
 }
コード例 #25
0
 public void SetTransaction(DbTransaction tran)
 {
     InternalDb.SetTransaction(tran);
 }
コード例 #26
0
 public Task <List <T> > FetchAsync <T>(long page, long itemsPerPage, Sql sql)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.FetchAsync <T>(page, itemsPerPage, sql)));
 }
コード例 #27
0
 public void BeginTransaction(IsolationLevel isolationLevel)
 {
     InternalDb.BeginTransaction(isolationLevel);
 }
コード例 #28
0
 public Task <List <T> > SkipTakeAsync <T>(long skip, long take, string sql, params object[] args)
 {
     return(RetryPolicy.ExecuteAsync(() => InternalDb.SkipTakeAsync <T>(skip, take, sql, args)));
 }
コード例 #29
0
 public void CompleteTransaction()
 {
     InternalDb.CompleteTransaction();
 }
コード例 #30
0
 public T FirstOrDefaultInto <T>(T instance, Sql sql)
 {
     return(RetryPolicy.ExecuteAction(() => InternalDb.FirstOrDefaultInto(instance, sql)));
 }