mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
实现加载md文档内容
This commit is contained in:
58
Examples/website/FreeSql.Site.Entity/DocumentComment.cs
Normal file
58
Examples/website/FreeSql.Site.Entity/DocumentComment.cs
Normal file
@ -0,0 +1,58 @@
|
||||
//using FreeSql.DataAnnotations;
|
||||
using FreeSql.DataAnnotations;
|
||||
using System;
|
||||
|
||||
namespace FreeSql.Site.Entity
|
||||
{
|
||||
public class DocumentComment
|
||||
{
|
||||
[Column(IsIdentity = true, IsPrimary = true)]
|
||||
public int ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 功能类型(文章、模板、示例等)
|
||||
/// </summary>
|
||||
public int FunctionType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 功能ID 文章、模板、示例等
|
||||
/// </summary>
|
||||
public int FunctionID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否匿名访问
|
||||
/// </summary>
|
||||
public int IsAnonymous { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 评论人
|
||||
/// </summary>
|
||||
public string Commentator { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 评论者IP
|
||||
/// </summary>
|
||||
public string CommentatorIp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 回复评论编号
|
||||
/// </summary>
|
||||
public int ReplyID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 评论内容
|
||||
/// </summary>
|
||||
public string CommentContent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime? CreateDt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
public string CreateBy { get; set; }
|
||||
|
||||
}
|
||||
}
|
67
Examples/website/FreeSql.Site.Entity/DocumentContent.cs
Normal file
67
Examples/website/FreeSql.Site.Entity/DocumentContent.cs
Normal file
@ -0,0 +1,67 @@
|
||||
//using FreeSql.DataAnnotations;
|
||||
using FreeSql.DataAnnotations;
|
||||
using System;
|
||||
|
||||
namespace FreeSql.Site.Entity
|
||||
{
|
||||
public class DocumentContent
|
||||
{
|
||||
[Column(IsIdentity = true, IsPrimary = true)]
|
||||
public int ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型编号
|
||||
/// </summary>
|
||||
public int TypeID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string DocTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要
|
||||
/// </summary>
|
||||
public string DocAbstract { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文档内容
|
||||
/// </summary>
|
||||
public string DocContent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查看次数
|
||||
/// </summary>
|
||||
public int WatchCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Star统计
|
||||
/// </summary>
|
||||
public int StarCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime? CreateDt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
public string CreateBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public DateTime? UpdateDt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人
|
||||
/// </summary>
|
||||
public string UpdateBy { get; set; }
|
||||
}
|
||||
}
|
@ -13,6 +13,11 @@ namespace FreeSql.Site.Entity
|
||||
|
||||
public int? UpID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
|
||||
public DateTime? CreateDt { get; set; }
|
||||
|
||||
public string CreateBy { get; set; }
|
||||
|
59
Examples/website/FreeSql.Site.Entity/TemplateExample.cs
Normal file
59
Examples/website/FreeSql.Site.Entity/TemplateExample.cs
Normal file
@ -0,0 +1,59 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FreeSql.Site.Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 模板示例
|
||||
/// </summary>
|
||||
public class TemplateExample
|
||||
{
|
||||
[Column(IsIdentity = true, IsPrimary = true)]
|
||||
public int ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板图片
|
||||
/// </summary>
|
||||
public string TemplateImg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板名称
|
||||
/// </summary>
|
||||
public string TempateName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板路径
|
||||
/// </summary>
|
||||
public string TemplatePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查看次数
|
||||
/// </summary>
|
||||
public int WatchCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下载统计
|
||||
/// </summary>
|
||||
public int DownloadCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Star统计
|
||||
/// </summary>
|
||||
public int StarCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
|
||||
public DateTime? CreateDt { get; set; }
|
||||
|
||||
public string CreateBy { get; set; }
|
||||
|
||||
public DateTime? UpdateDt { get; set; }
|
||||
|
||||
public string UpdateBy { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user