bool IDutchRepository.SaveAll()
 {
     try
     {
         return(_ctx.SaveChanges() > 0);
     }
     catch (System.Exception ex)
     {
         _logger.LogError($"error saving changes: {ex}");
         return(false);
     }
 }
 public bool saveAll()
 {
     try
     {
         return(_context.SaveChanges() > 0);
     }
     catch (Exception ex)
     {
         _logger.LogInformation($"Failed to save changes to database {ex}");
         return(false);
     }
 }
示例#3
0
 public bool SaveAll()
 {
     return(_ctx.SaveChanges() > 0);
 }
 public bool saveAll()
 {
     return(_context.SaveChanges() > 0);
 }
示例#5
0
 public bool Commit()
 {
     return(_context.SaveChanges() > 0);
 }