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