Beispiel #1
0
 public Task <IEnumerable <T> > GetAllAsync <T>() where T : class
 {
     if (CurrentTransaction != null)
     {
         return(DbExecProxyAsync <IEnumerable <T> >((param) => CurrentConnection.GetAllAsync <T>(CurrentTransaction, CommandTimeout), "get all", null));
     }
     using var connection = GetDbConnection(DataSourceEnum.SLAVE);
     return(DbExecProxyAsync <IEnumerable <T> >((param) => connection.GetAllAsync <T>(CurrentTransaction, CommandTimeout), "get all", null));
 }