forked from anjoy8/Blog.Core
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRole.cs
More file actions
69 lines (66 loc) · 1.85 KB
/
Role.cs
File metadata and controls
69 lines (66 loc) · 1.85 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
58
59
60
61
62
63
64
65
66
67
68
69
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Blog.Core.Model.Models
{
/// <summary>
/// 角色表
/// </summary>
public class Role
{
public Role()
{
this.UserRole = new List<UserRole>();
this.RoleModulePermission = new List<RoleModulePermission>();
}
public int Id { get; set; }
/// <summary>
///获取或设置是否禁用,逻辑上的删除,非物理删除
/// </summary>
public bool? IsDeleted { get; set; }
/// <summary>
/// 角色名
/// </summary>
public string Name { get; set; }
/// <summary>
///描述
/// </summary>
public string Description { get; set; }
/// <summary>
///排序
/// </summary>
public int OrderSort { get; set; }
/// <summary>
/// 是否激活
/// </summary>
public bool Enabled { get; set; }
/// <summary>
/// 创建ID
/// </summary>
public int? CreateId { get; set; }
/// <summary>
/// 创建者
/// </summary>
public string CreateBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime? CreateTime { get; set; }
/// <summary>
/// 修改ID
/// </summary>
public int? ModifyId { get; set; }
/// <summary>
/// 修改者
/// </summary>
public string ModifyBy { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public DateTime? ModifyTime { get; set; }
public virtual ICollection<UserRole> UserRole { get; set; }
public virtual ICollection<RoleModulePermission> RoleModulePermission { get; set; }
}
}