Пример #1
0
        /// <summary>
        /// 添加数据
        /// </summary>
        /// <param name="dict"></param>
        /// <returns></returns>
        public bool AddDict(CrmDictEntity dict)
        {
            var count = _service.FindCountByFunc <CrmDictEntity>(t => t.DictType == dict.DictType && t.DictKey == dict.DictKey);

            if (count > 0)
            {
                return(false);
            }
            return(_service.Insert(dict));
        }