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); }
/* Delete from SGSettingData */ public bool DeleteSettingData(SGSettingData settingData) { // Delete DBSDataCtx.Remove(settingData); DBSDataCtx.SaveChanges(); Log.Information($"Delete the SGSettingData, {settingData}"); return(true); }