public bool Update(string strJson, out string strout) { Model.PhoneSection model = (Model.PhoneSection)JavaScriptConvert.DeserializeObject(strJson, typeof(Model.PhoneSection)); strout = "更新号段信息失败"; bool bRet = dal.Update(model); if (bRet) { //清除缓存 DataCache.InitCacheSection(); } return(bRet); }
public bool Update(Model.PhoneSection model) { try { MyDataBase.db.Update(SmsPlatForm.PhoneSection) .AddColumn(SmsPlatForm.PhoneSection.MobileHeader, model.MobileHeader) .AddColumn(SmsPlatForm.PhoneSection.UnicomHeader, model.UnicomHeader) .AddColumn(SmsPlatForm.PhoneSection.TelecomHeader, model.TelecomHeader).Execute(); return(true); } catch (System.Exception e) { //记录日志 return(false); } }