//using FreeSql.DataAnnotations; using FreeSql.DataAnnotations; using System; namespace FreeSql.Site.Entity { /// /// 数据库实体 /// public class DocumentContent : BaseEntity { /// /// 类型编号 /// public int TypeID { get; set; } /// /// 标题 /// public string DocTitle { get; set; } /// /// 摘要 /// public string DocAbstract { get; set; } /// /// 内容来源类型(0 当前记录 1=Url地址 /// public int OriginType { get; set; } /// /// 来源地址 /// public string OriginUrl { get; set; } /// /// 编辑器模式 (=0 Markdown =1 HTML编辑器 ) /// public int EditorMode { get; set; } /// /// 文档内容 /// [Column(DbType = "text")] public string DocContent { get; set; } /// /// 查看次数 /// public int WatchCount { get; set; } /// /// Star统计 /// public int StarCount { get; set; } /// /// 修改时间 /// public DateTime? UpdateDt { get; set; } /// /// 修改人 /// public string UpdateBy { get; set; } } /// /// 返回实体内容 /// public class DocumentContentView : DocumentContent { } }