Example #1
0
        /// <summary>
        /// 获取多个评论对象
        /// </summary>
        /// <param name="idlist"></param>
        /// <returns></returns>
        public List <CommentModel> GetCommentsByIDS(params string[] idlist)
        {
            if (!ValidateHelper.IsPlumpList(idlist))
            {
                return(null);
            }

            var _commentDal = new CommentDal();

            return(_commentDal.GetList(x => idlist.Contains(x.UID)));
        }
Example #2
0
        /// <summary>
        /// 获取多个评论对象
        /// </summary>
        /// <param name="idlist"></param>
        /// <returns></returns>
        public List <CommentModel> GetCommentsByIDS(params int[] idlist)
        {
            if (!ValidateHelper.IsPlumpList(idlist))
            {
                return(null);
            }
            string key = Com.GetCacheKey("commentbll.GetCommentsByIDS", string.Join(",", idlist));

            return(Cache(key, () =>
            {
                var _commentDal = new CommentDal();
                return _commentDal.GetList(x => idlist.Contains(x.CommentID));
            }));
        }
Example #3
0
 /// <summary>
 /// 获得数据列表
 /// </summary>
 public DataSet GetList(string strWhere)
 {
     return(dal.GetList(strWhere));
 }