查询结果集

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OA.UserManager
{
    public class QueryResult<T>
    {
        #region 属性
        /// <summary>
        /// 总的记录数
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 当前页码
        /// </summary>
        public int Page { get; set; }
        /// <summary>
        /// 查询结果集
        /// </summary>
        public IList<T> DataList { get;  }
        /// <summary>
        /// 每页记录数
        /// </summary>
        public int Size
        {
            get;
            private set;
        }
        #endregion
        public QueryResult(int size)
        {
            this.Size = size;
        }

    }
}
posted @ 2011-03-07 09:54  吕飞  阅读(250)  评论(0编辑  收藏  举报