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;
            }
        }
    }
  • 相关阅读:
    D
    NOI 1.7编程基础之字符串(35题)
    HYSBZ 2145 悄悄话
    POJ 2406 Power Strings
    POJ 3461 Oulipo[附KMP算法详细流程讲解]
    POJ 3974 Palindrome
    POJ 1002 487-3279
    POJ 1182 食物链
    POJ 2524 Ubiquitous Religions
    HDU 1251 统计难题
  • 原文地址:https://www.cnblogs.com/juexin/p/2916963.html
Copyright © 2011-2022 走看看