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;
            }
        }
    }
  • 相关阅读:
    PHP调试的时候出现了警告:
    快报滚动
    js foreach、map函数
    箭头函数和普通函数的区别
    flex布局
    react+propTypes
    手机尺寸
    less的使用
    发现是在IE6-IE9下,下列元素table,thead,tfoot,tbody,tr,col,colgroup,html,title,style,frameset的innerHTML属性是只读的
    div+css 组织结构
  • 原文地址:https://www.cnblogs.com/juexin/p/2916963.html
Copyright © 2011-2022 走看看