예제 #1
0
파일: DataProvider.cs 프로젝트: PavelPZ/REW
 public static void updateProfileLow(LMComData2.User user, ProfileData profile) {
   writeProfileLow(user, profile.getAsString(), new ProfileDataCriteria(profile));
 }
예제 #2
0
파일: DataProvider.cs 프로젝트: PavelPZ/REW
 public static void WriteProfileEx(ProfileData data, bool saveAnonymous) {
   if (Machines.isBuildEACache_BuildCD_Crawler) return;
   if (data == null) throw new Exception();
   if (!saveAnonymous && data.Id < 0) return;
   string s = data.getAsString();
   bool isInsert = data.oldAsString == null;
   if (!isInsert && s == data.oldAsString) return;
   /*{
     if (s == data.oldAsString) return;
     //data.Version = data.Version + 1;
     //s = data.getAsString(); //nova serializace kvuli zvyseni verze
   }*/
   try {
     Instance.writeProfileLow(isInsert, s, new ProfileDataCriteria(data));
   } catch (Exception exp) {
     if (exp == null) return;
     try { if (isInsert) Instance.writeProfileLow(false, s, new ProfileDataCriteria(data)); } catch { }
   }
   data.oldAsString = s;
 }