/// <summary> /// 删除数据字典 /// </summary> /// <param name="name">字典名称</param> /// <returns>成功返回true</returns> public void Remove(string name) { if (Delete(name)) { DictionaryData.Remove(p => p.Code.Equals(name)); } }
/// <summary> /// 删除参数 /// </summary> /// <param name="key">参数名称</param> /// <returns>成功返回true</returns> public void Remove(string key) { var entity = ParamData.First(p => p.Key.Equals(key)); if (entity != null) { Delete(entity); ParamData.Remove(entity); } }
/// <summary> /// 删除参数 /// </summary> /// <param name="key">参数名称</param> /// <returns>成功返回true</returns> public void Remove(string key) { ParamData.Remove(p => p.Key.Equals(key) && p.UserID == UserID); }
/// <summary> /// 删除元数据 /// </summary> /// <param name="name">实体名称</param> public void Delete(object name) { MetadataList.Remove(p => p.Name.Equals(name)); Save(); }