forked from anjoy8/Blog.Core
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathGuestbook.cs
More file actions
57 lines (49 loc) · 1.64 KB
/
Guestbook.cs
File metadata and controls
57 lines (49 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using SqlSugar;
using System;
namespace Blog.Core.Model.Models
{
public class Guestbook
{
/// <summary>
/// 留言表
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
public int id { get; set; }
/// <summary>博客ID
///
/// </summary>
public int? blogId { get; set; }
/// <summary>创建时间
///
/// </summary>
public DateTime createdate { get; set; }
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string username { get; set; }
/// <summary>手机
///
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string phone { get; set; }
/// <summary>qq
///
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string QQ { get; set; }
/// <summary>留言内容
///
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string body { get; set; }
/// <summary>ip地址
///
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string ip { get; set; }
/// <summary>是否显示在前台,0否1是
///
/// </summary>
public bool isshow { get; set; }
[SugarColumn(IsIgnore = true)]
public BlogArticle blogarticle { get; set; }
}
}