Пример #1
0
        /// <summary>
        /// 分页得到列表<para>如果没有对像的可以传入 object 或者  dynamic </para>
        /// </summary>
        /// <param name="pageIndex">显示页号</param>
        /// <param name="pageSize">每页显示数</param>
        /// <param name="columnName">需要获取的列名<para>为了方便不在处理,列与列用逗号分开,参照SQL写法</para></param>
        /// <param name="dapperWheres">条件列表</param>
        /// <param name="filedOrder">排序</param>
        /// <returns>返回列表</returns>
        public static List <T> GetList <T>(int pageIndex, int pageSize, string columnName, List <DapperWhere> dapperWheres, string filedOrder)
        {
            T_LOGBaseDAL dal = new T_LOGBaseDAL();

            return(dal.GetList <T>(pageIndex, pageSize, columnName, dapperWheres, filedOrder));
        }
Пример #2
0
        /// <summary>
        /// 得到总数
        /// </summary>
        /// <param name="dapperWheres">条件列表</param>
        /// <returns></returns>
        public static int GetCount(List <DapperWhere> dapperWheres)
        {
            T_LOGBaseDAL dal = new T_LOGBaseDAL();

            return(dal.GetCount(dapperWheres));
        }
Пример #3
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        /// <param name="top">前几行</param>
        /// <param name="columnName">需要获取的列名<para>为了方便不在处理,列与列用逗号分开,参照SQL写法</para></param>
        /// <param name="dapperWheres">查询条件列表</param>
        /// <param name="filedOrder">排序</param>
        public static List <dynamic> GetList(int top, string columnName, List <DapperWhere> dapperWheres, string filedOrder)
        {
            T_LOGBaseDAL dal = new T_LOGBaseDAL();

            return(dal.GetList(top, columnName, dapperWheres, filedOrder));
        }
Пример #4
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        /// <param name="top">前几行</param>
        /// <param name="dapperWheres">查询条件列表</param>
        /// <param name="filedOrder">排序</param>
        public static List <T_LOG> GetList(int top, List <DapperWhere> dapperWheres, string filedOrder)
        {
            T_LOGBaseDAL dal = new T_LOGBaseDAL();

            return(dal.GetList(top, dapperWheres, filedOrder));
        }
Пример #5
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        /// <param name="dapperWheres">查询条件列表</param>
        public static List <T_LOG> GetList(List <DapperWhere> dapperWheres)
        {
            T_LOGBaseDAL dal = new T_LOGBaseDAL();

            return(dal.GetList(dapperWheres));
        }
Пример #6
0
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public static T_LOG GetModel(int ID)
        {
            T_LOGBaseDAL dal = new T_LOGBaseDAL();

            return(dal.GetModel(ID));
        }