/// <summary> /// 更新一条数据 /// </summary> public bool Update(JSoft.Model.SA.Tree model, bool resetCache = false) { bool flag = dal.Update(model); if (resetCache && (flag)) { JSoft.Common.DataCache.RemoveByPattern("TreeModel(.*)"); /*清除缓存,通过正则删除缓存*/ } return(flag); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(JSoft.Model.SA.Tree model, bool resetCache = false) { int flag = dal.Add(model); if (resetCache && (flag > 0)) { JSoft.Common.DataCache.RemoveByPattern("TreeModel(.*)"); /*清除缓存,通过正则删除缓存*/ } return(flag); }