ContentLog.cs
1.03 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
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using TableAttribute = System.ComponentModel.DataAnnotations.Schema.TableAttribute;
using ColumnAttribute = System.ComponentModel.DataAnnotations.Schema.ColumnAttribute;
namespace HHECS.Model.Entities
{
/// <summary>
/// 内容日志
/// </summary>
[Table("contentlog")]
public class ContentLog : BaseEntityCU<int>
{
private string title;
[Column(Order = 2)]
[MaxLength(50)]
public string Title
{
get { return title; }
set { title = value; }
}
private string content;
[Column(Order = 3)]
[MaxLength(1000)]
public string Content
{
get { return content; }
set { content = value; }
}
private string flag;
[Column(Order = 4)]
[MaxLength(50)]
public string Flag
{
get { return flag; }
set { flag = value; }
}
}
}