Example #1
0
 public bool UpdateSettingDataObj(SGSettingData obj)
 {
     // Create
     Log.Information($"Updating a SettingData, GROUPID:{obj.GROUPID}, UID:{obj.UID}, APPRLINE:{obj.APPRLINE}, DELAYDSPPW:{obj.DELAYDISPLAYPW}, AUTOLOGIN:{obj.AUTOLOGINING}");
     DBSDataCtx.Update(obj);
     DBSDataCtx.SaveChanges();
     return(true);
 }
Example #2
0
 /* Update to SGSettingData */
 public bool UpdateSettingData(int groupId, string uid, string upw, string apprline, string delayDspPw, int autoLoginUse)
 {
     // Create
     Log.Information($"Updating a SettingData, GROUPID:{groupId}, UID:{uid}, APPRLINE:{apprline}, DELAYDSPPW:{delayDspPw}, AUTOLOGIN:{autoLoginUse}");
     DBSDataCtx.Update(new SGSettingData
     {
         GROUPID        = groupId,
         UID            = uid,
         UPW            = upw,
         APPRLINE       = apprline,
         DELAYDISPLAYPW = delayDspPw,
         AUTOLOGINING   = autoLoginUse
     }
                       );
     DBSDataCtx.SaveChanges();
     return(true);
 }