ContentLog.cs 1.03 KB
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using TableAttribute = System.ComponentModel.DataAnnotations.Schema.TableAttribute;
using ColumnAttribute = System.ComponentModel.DataAnnotations.Schema.ColumnAttribute;

namespace HHECS.Model.Entities
{
    /// <summary>
    /// 内容日志
    /// </summary>
    [Table("contentlog")]
    public class ContentLog : BaseEntityCU<int>
    {
        private string title;

        [Column(Order = 2)]
        [MaxLength(50)]
        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        private string content;

        [Column(Order = 3)]
        [MaxLength(1000)]
        public string Content
        {
            get { return content; }
            set { content = value; }
        }

        private string flag;

        [Column(Order = 4)]
        [MaxLength(50)]
        public string Flag
        {
            get { return flag; }
            set { flag = value; }
        }

    }
}