zoukankan      html  css  js  c++  java
  • 实体类格式

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace Model
    {
        /// <summary>
        /// 新闻表实体类
        /// </summary>
        public class News
        {
            private string id;
            /// <summary>
            /// 主键自增
            /// </summary>
            public string Id
            {
                get { return id; }
                set { id = value; }
            }
            private string title;
            /// <summary>
            /// 新闻标题
            /// </summary>
            public string Title
            {
                get { return title; }
                set { title = value; }
            }
            private string content;
            /// <summary>
            /// 新闻内容/主体
            /// </summary>
            public string Content
            {
                get { return content; }
                set { content = value; }
            }
            private string createTime;
            /// <summary>
            /// 创建时间
            /// </summary>
            public string CreateTime
            {
                get { return createTime; }
                set { createTime = value; }
            }
            private string caid;
            /// <summary>
            /// 主键自增
            /// </summary>
            public string Caid
            {
                get { return caid; }
                set { caid = value; }
            }
    
            public News()
            { 
            }
            public News(string title, string content, string caid)
            {
               
                this.title = title;
                this.content = content;
                this.caid = caid;
            }
            public News(string id, string title, string content, string caid)
            {
                this.id = id;
                this.title = title;
                this.content = content;
                this.caid = caid;
            }
        }
    }
  • 相关阅读:
    我所理解的NAT
    H3C防火墙安全策略故障排查思路
    职场建议
    小型企业典型网络内部拓扑
    echo&printf
    笔挺站立 昂首挺胸
    Jordan Peterson 的建议
    刚才思考的两个问题
    高手的见解
    一个企业网络管理人员的注意事项
  • 原文地址:https://www.cnblogs.com/juexin/p/2916963.html
Copyright © 2011-2022 走看看