/* *代码由框架生成,任何更改都可能导致被代码生成器覆盖 *如果数据库字段发生变化,请在代码生器重新生成此Model */ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; using VOL.Entity.SystemModels; namespace VOL.Entity.DomainModels { [Entity(TableCnName = "新闻列表",TableName = "App_News")] public class App_News:BaseEntity { /// ///主键ID /// [Key] [Display(Name ="主键ID")] [Column(TypeName="int")] [Required(AllowEmptyStrings=false)] public int Id { get; set; } /// ///标题 /// [Display(Name ="标题")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] [Required(AllowEmptyStrings=false)] public string Title { get; set; } /// ///新闻内容 /// [Display(Name ="新闻内容")] [Column(TypeName="nvarchar(max)")] [Editable(true)] public string Content { get; set; } /// ///发布人 /// [Display(Name ="发布人")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] public string Author { get; set; } /// ///发布时间 /// [Display(Name ="发布时间")] [Column(TypeName="datetime")] public DateTime? ReleaseDate { get; set; } /// ///封面图片 /// [Display(Name ="封面图片")] [Column(TypeName="nvarchar(max)")] [Editable(true)] public string ImageUrl { get; set; } /// ///图片(大图) /// [Display(Name ="图片(大图)")] [MaxLength(1000)] [Column(TypeName="nvarchar(1000)")] public string BigImageUrls { get; set; } /// ///新闻地址 /// [Display(Name ="新闻地址")] [MaxLength(400)] [Column(TypeName="nvarchar(400)")] [Editable(true)] public string DetailUrl { get; set; } /// ///浏览次数 /// [Display(Name ="浏览次数")] [Column(TypeName="int")] [Editable(true)] public int? ViewCount { get; set; } /// ///新闻类型 /// [Display(Name ="新闻类型")] [Column(TypeName="int")] [Editable(true)] [Required(AllowEmptyStrings=false)] public int NewsType { get; set; } /// ///是否今日推荐 /// [Display(Name ="是否今日推荐")] [Column(TypeName="smallint")] [Editable(true)] [Required(AllowEmptyStrings=false)] public int DailyRecommend { get; set; } /// ///推荐排序 /// [Display(Name ="推荐排序")] [Column(TypeName="int")] [Editable(true)] public int? OrderNo { get; set; } /// ///是否启用 /// [Display(Name ="是否启用")] [Column(TypeName="smallint")] [Editable(true)] public int? Enable { get; set; } /// ///创建人Id /// [Display(Name ="创建人Id")] [Column(TypeName="uniqueidentifier")] public Guid? CreateID { get; set; } /// ///发布人 /// [Display(Name ="发布人")] [MaxLength(60)] [Column(TypeName="nvarchar(60)")] [Editable(true)] public string Creator { get; set; } /// ///发布时间 /// [Display(Name ="发布时间")] [Column(TypeName="datetime")] [Editable(true)] public DateTime? CreateDate { get; set; } /// ///修改人ID /// [Display(Name ="修改人ID")] [Column(TypeName="uniqueidentifier")] public Guid? ModifyID { get; set; } /// ///修改人 /// [Display(Name ="修改人")] [MaxLength(60)] [Column(TypeName="nvarchar(60)")] public string Modifier { get; set; } /// ///修改时间 /// [Display(Name ="修改时间")] [Column(TypeName="datetime")] [Editable(true)] public DateTime? ModifyDate { get; set; } } }