OpenAuth.Net/OpenAuth.Domain/Model/Role.cs

35 lines
1.1 KiB
C#
Raw Normal View History

2015-04-15 23:57:36 +08:00
using System;
using System.Collections.Generic;
2015-05-23 12:10:53 +08:00
using OpenAuth.Domain.Utility;
2015-04-15 23:57:36 +08:00
2015-04-25 12:31:01 +08:00
namespace OpenAuth.Domain.Model
2015-04-15 23:57:36 +08:00
{
2015-05-23 12:10:53 +08:00
public partial class Role :EntityBase<string>, IAggregateRoot
2015-04-15 23:57:36 +08:00
{
public Role()
{
this.DataPermissions = new List<DataPermission>();
this.RoleMenus = new List<Menu>();
this.Users = new List<User>();
}
2015-05-23 12:10:53 +08:00
protected override void Validate()
{
throw new NotImplementedException();
}
2015-04-15 23:57:36 +08:00
public string ParentId { get; set; }
public string FullName { get; set; }
public string Category { get; set; }
public string Description { get; set; }
2015-04-27 00:10:02 +08:00
public bool Enabled { get; set; }
2015-04-15 23:57:36 +08:00
public Nullable<int> SortCode { get; set; }
2015-04-27 00:10:02 +08:00
public bool DeleteMark { get; set; }
2015-04-15 23:57:36 +08:00
public string DepartmentId { get; set; }
public virtual ICollection<DataPermission> DataPermissions { get; set; }
public virtual Department Department { get; set; }
public virtual ICollection<Menu> RoleMenus { get; set; }
public virtual ICollection<User> Users { get; set; }
}
}