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;
            }
        }
    }
  • 相关阅读:
    Java中间件:淘宝网系统高性能利器(转)
    淘宝的数据库拆分(TDDL)(转)
    java web几种开发模式(转)
    C++模板【转】
    set[c++]
    C# jsonhelper
    Vector[C++]
    list[C++]
    map[C++]
    C[泊车管理系统]
  • 原文地址:https://www.cnblogs.com/juexin/p/2916963.html
Copyright © 2011-2022 走看看