zoukankan      html  css  js  c++  java
  • API-MODEL示例

    可以参照的model层示例
     
    ////温馨提示记住一定要让需要的去引用模型层
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace Model
    {
        /// <summary>
        /// 建立返回查询数据的Model
        /// </summary>
        public class pageModel
        {
            //领取记录的结果集
            public List<lqjlModel> list { get; set; }
            //当前页
            public int currentPage { get; set; }
            //总记录数
            public int totalCount { get; set; }
            //总页数
            public int totalPage { get; set; }
        }
        /// <summary>
        /// 领取记录实体类(从数据库里查出来的)
        /// </summary>
        public class lqjlModel
        {
            //ID
            public int Id { get; set; }
            //用户姓名
            public string Name { get; set; }
            //优惠券名称
            public string mc { get; set; }
            //使用条件
            public string sytj { get; set; }
            //优惠方式
            public string yhfs { get; set; }
            public string yhfs1 { get; set; }
            //领取时间
            public DateTime lqsh { get; set; }
            //核销状态
            public string hxzt { get; set; }
        }
    }
     
  • 相关阅读:
    [转]C++ Operator Overloading Guidelines
    SICP学习笔记(2.2.1)
    .net中模拟键盘和鼠标操作
    javaScript系列 [17]运算符
    javaScript系列 [24]Math
    javaScript系列 [19]string
    javaScript系列 [22]引用类型
    javaScript系列 [12]Canvas绘图(曲线)
    javaScript系列 [15]Canvas绘图(压缩)
    javaScript系列 [21]Array
  • 原文地址:https://www.cnblogs.com/gc1229/p/13072767.html
Copyright © 2011-2022 走看看