2019-01-28 17:30:59 +08:00

78 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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