public bool UpdateExtendAttr(DataExtendAttr pro) { bool result = dal.UpdateExtendAttr(pro); WeakRefCache.RebuiltDataExtendAttrs(); return(result); }
public bool AddExtendAttr(DataExtendAttr attr) { bool result = dal.AddExtendAttr(attr); WeakRefCache.RebuiltDataExtendAttrs(); return(result); }
public bool DeleteExtendAttr(int propertyID) { bool result = dal.DeleteExtendAttr(propertyID); WeakRefCache.RebuiltDataExtendAttrs(); return(result); }
/// <summary> /// 删除链接 /// </summary> /// <param name="linkID"></param> /// <returns></returns> public bool Delete(int linkID) { int result = dal.Delete(linkID); WeakRefCache.RebuiltLinks(); return(result == 1); }
/// <summary> /// 更新链接 /// </summary> /// <param name="link"></param> public void UpdateLink(Link link) { if (dal.Update(link) == 1) { WeakRefCache.RebuiltLinks(); } }
public bool UpdateModule(Module module) { bool result = dal.UpdateModule(module); if (result) { WeakRefCache.RebuiltModule(); } return(result); }
/// <summary> /// 设置链接是否显示 /// </summary> /// <param name="linkID"></param> public bool SetVisible(int linkID) { bool result = false; Link link = Get(a => a.ID == linkID); if (link != null) { link.Visible = !link.Visible; result = dal.SetVisible(linkID, link.Visible) == 1; if (result) { WeakRefCache.RebuiltLinks(); } } return(result); }
public bool AddModule(int siteID, string name) { if (this.GetModule(siteID, name) == null) { // //todo:check siteid // bool result = dal.AddModule(new Module { SiteId = siteID, Name = name, IsSystem = false, IsDelete = false }); WeakRefCache.RebuiltModule(); return(result); } return(false); }
public void RebuiltExtends() { WeakRefCache.RebuiltDataExtends(); }
/// <summary> /// 添加链接 /// </summary> public void CreateLink(Link link) { dal.Add(link); WeakRefCache.RebuiltLinks(); }