示例#1
0
 /// <summary>
 /// 删除数据字典
 /// </summary>
 /// <param name="name">字典名称</param>
 /// <returns>成功返回true</returns>
 public void Remove(string name)
 {
     if (Delete(name))
     {
         DictionaryData.Remove(p => p.Code.Equals(name));
     }
 }
示例#2
0
        /// <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);
            }
        }
示例#3
0
 /// <summary>
 /// 删除参数
 /// </summary>
 /// <param name="key">参数名称</param>
 /// <returns>成功返回true</returns>
 public void Remove(string key)
 {
     ParamData.Remove(p => p.Key.Equals(key) && p.UserID == UserID);
 }
示例#4
0
 /// <summary>
 /// 删除元数据
 /// </summary>
 /// <param name="name">实体名称</param>
 public void Delete(object name)
 {
     MetadataList.Remove(p => p.Name.Equals(name));
     Save();
 }