using SqlSugar; using System; using System.ComponentModel.DataAnnotations; namespace HT.Cloud.Domain.ContentManage { /// /// 创 建:超级管理员 /// 日 期:2020-06-09 19:42 /// 描 述:新闻管理实体类 /// [SugarTable("cms_articlenews")] [TenantAttribute("0")] public class ArticleNewsEntity : IEntity, ICreationAudited, IModificationAudited, IDeleteAudited { /// /// 文章主键Id /// /// [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")] public string F_Id { get; set; } /// /// 类别Id /// /// [Required(ErrorMessage = "新闻类别不能为空")] [SugarColumn(IsNullable = false, ColumnName = "F_CategoryId", ColumnDataType = "nvarchar(50)", ColumnDescription = "类别Id", UniqueGroupNameList = new string[] { "cms_articlenews" })] public string F_CategoryId { get; set; } /// /// 类别名称(不映射任何列) /// /// [SugarColumn(IsIgnore = true)] public string F_CategoryName { get; set; } /// /// 标题 /// /// [Required(ErrorMessage = "新闻标题不能为空")] [SugarColumn(IsNullable = true, ColumnName = "F_Title", ColumnDataType = "nvarchar(200)", ColumnDescription = "标题", UniqueGroupNameList = new string[] { "cms_articlenews" })] public string F_Title { get; set; } /// /// 链接地址 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_LinkUrl", ColumnDataType = "longtext", ColumnDescription = "链接地址")] public string F_LinkUrl { get; set; } /// /// 图片地址 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_ImgUrl", ColumnDataType = "longtext", ColumnDescription = "图片地址")] public string F_ImgUrl { get; set; } /// /// SEO标题 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_SeoTitle", ColumnDataType = "longtext", ColumnDescription = "SEO标题")] public string F_SeoTitle { get; set; } /// /// SEO关键字 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_SeoKeywords", ColumnDataType = "longtext", ColumnDescription = "SEO关键字")] public string F_SeoKeywords { get; set; } /// /// SEO描述 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_SeoDescription", ColumnDataType = "longtext", ColumnDescription = "SEO描述")] public string F_SeoDescription { get; set; } /// /// 标签 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_Tags", ColumnDataType = "longtext", ColumnDescription = "标签")] public string F_Tags { get; set; } /// /// 摘要 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_Zhaiyao", ColumnDataType = "longtext", ColumnDescription = "摘要")] public string F_Zhaiyao { get; set; } /// /// 内容 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "内容")] public string F_Description { get; set; } /// /// 排序 /// /// [Required(ErrorMessage = "排序不能为空")] [Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")] [SugarColumn(IsNullable = true, ColumnDescription = "排序")] public int? F_SortCode { get; set; } /// /// 是否置顶 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "是否置顶")] public bool? F_IsTop { get; set; } /// /// 是否推荐 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "是否推荐")] public bool? F_IsHot { get; set; } /// /// 是否热门 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "是否热门")] public bool? F_IsRed { get; set; } /// /// 点击次数 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "点击次数")] public int? F_Click { get; set; } /// /// 来源 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_Source", ColumnDataType = "nvarchar(50)", ColumnDescription = "来源")] public string F_Source { get; set; } /// /// 作者 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_Author", ColumnDataType = "nvarchar(50)", ColumnDescription = "作者")] public string F_Author { get; set; } /// /// 是否启用 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "是否启用")] public bool? F_EnabledMark { get; set; } /// /// 逻辑删除标志 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "逻辑删除标志")] public bool? F_DeleteMark { get; set; } /// /// 创建时间 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "创建时间")] public DateTime? F_CreatorTime { get; set; } /// /// 创建人 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人")] public string F_CreatorUserId { get; set; } /// /// 最后修改时间 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "最后修改时间")] public DateTime? F_LastModifyTime { get; set; } /// /// 最后修改人 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "最后修改人")] public string F_LastModifyUserId { get; set; } /// /// 删除时间 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "删除时间")] public DateTime? F_DeleteTime { get; set; } /// /// 删除人 /// /// [SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人")] public string F_DeleteUserId { get; set; } } }