美文网首页
【C#】Model基本模板示例

【C#】Model基本模板示例

作者: KevinTseng | 来源:发表于2018-06-12 23:52 被阅读0次
using System;
namespace WebApplication.Model
{
    /// <summary>
    /// [category]表实体类
    /// 作者:Author
    /// 创建时间:2018-06-12 20:25:46
    /// </summary>
    [Serializable]
    public partial class Category
    {
        public Category()
        { }
        private int? _id ;
        /// <summary>
        /// 健康知识文章分类
        /// </summary>
        public int? id
        {
            set { _id = value; }
            get { return _id; }
        }
        private Guid _categoryguid ;
        /// <summary>
        /// 类别编号
        /// </summary>
        public Guid categoryguid
        {
            set { _categoryguid = value; }
            get { return _categoryguid; }
        }
        private string _name ;
        /// <summary>
        /// 类别名称
        /// </summary>
        public string name
        {
            set { _name = value; }
            get { return _name; }
        }
        private string _shortname ;
        /// <summary>
        /// 类别名称缩写
        /// </summary>
        public string shortname
        {
            set { _shortname = value; }
            get { return _shortname; }
        }
        private int? _isshow = 1 ;
        /// <summary>
        /// 1显示 | 0不显示
        /// </summary>
        public int? isshow
        {
            set { _isshow = value; }
            get { return _isshow; }
        }
    }
}

相关文章

网友评论

      本文标题:【C#】Model基本模板示例

      本文链接:https://www.haomeiwen.com/subject/pmddeftx.html