SysEntity.cs
898 Bytes
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
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace WebRepository
{
/// <summary>
/// 系统字段
/// </summary>
public abstract class SysEntity
{
/// <summary>
/// Id
/// </summary>
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Column("Id")]
public int? Id { get; set; }
/// <summary>
/// 创建者
/// </summary>
public string CreateBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime? CreateTime { get; set; }
/// <summary>
/// 更新者
/// </summary>
public string UpdateBy { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdateTime { get; set; }
}
}