Beispiel #1
0
 public Task <bool> DeleteAllAsync <T>() where T : class
 {
     if (CurrentTransaction != null)
     {
         return(CurrentConnection.DeleteAllAsync <T>(CurrentTransaction, CommandTimeout));
     }
     using var connection = GetDbConnection(DataSourceEnum.MASTER);
     return(connection.DeleteAllAsync <T>(CurrentTransaction, CommandTimeout));
 }