Пример #1
0
 public bool CreateOrUpdateEntity(SettingEntity[] settings)
 {
     try
     {
         _settingRepository.AddOrUpdate(settings);
         return(true);
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(false);
     }
 }