示例#1
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 <T> GetList <T>(int top, string columnName, List <DapperWhere> dapperWheres, string filedOrder)
        {
            Sys_AdsBaseDAL dal = new Sys_AdsBaseDAL();

            return(dal.GetList <T>(top, columnName, dapperWheres, filedOrder));
        }
示例#2
0
        /// <summary>
        /// 得到总数
        /// </summary>
        /// <param name="dapperWheres">条件列表</param>
        /// <returns></returns>
        public static int GetCount(List <DapperWhere> dapperWheres)
        {
            Sys_AdsBaseDAL dal = new Sys_AdsBaseDAL();

            return(dal.GetCount(dapperWheres));
        }
示例#3
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        /// <param name="dapperWheres">查询条件列表</param>
        public static List <Sys_Ads> GetList(List <DapperWhere> dapperWheres)
        {
            Sys_AdsBaseDAL dal = new Sys_AdsBaseDAL();

            return(dal.GetList(dapperWheres));
        }
示例#4
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        /// <param name="top">前几行</param>
        /// <param name="dapperWheres">查询条件列表</param>
        /// <param name="filedOrder">排序</param>
        public static List <Sys_Ads> GetList(int top, List <DapperWhere> dapperWheres, string filedOrder)
        {
            Sys_AdsBaseDAL dal = new Sys_AdsBaseDAL();

            return(dal.GetList(top, dapperWheres, filedOrder));
        }
示例#5
0
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public static Sys_Ads GetModel(int id)
        {
            Sys_AdsBaseDAL dal = new Sys_AdsBaseDAL();

            return(dal.GetModel(id));
        }
示例#6
0
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public static bool Delete(int id)
        {
            Sys_AdsBaseDAL dal = new Sys_AdsBaseDAL();

            return(dal.Delete(id));
        }
示例#7
0
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public static bool Update(Sys_Ads model)
        {
            Sys_AdsBaseDAL dal = new Sys_AdsBaseDAL();

            return(dal.Update(model));
        }
示例#8
0
        /// <summary>
        /// 新增加一条数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static int Add(Sys_Ads model)
        {
            Sys_AdsBaseDAL dal = new Sys_AdsBaseDAL();

            return(dal.Add(model));
        }
示例#9
0
        /// <summary>
        /// 分页得到列表
        /// </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)
        {
            Sys_AdsBaseDAL dal = new Sys_AdsBaseDAL();

            return(dal.GetList <T>(pageIndex, pageSize, columnName, dapperWheres, filedOrder));
        }