You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
810 B

namespace Easy.AuthorityManagement.Clean.Domain.Entities;
public class IdentityRole : AggregateRoot<long>
{
public virtual long? TenantId { get; protected set; }
/// <summary>
/// 获取或设置此角色的名称。
/// </summary>
public virtual string RoleName { get; protected internal set; }
/// <summary>
/// Navigation property for the roles this user belongs to.
/// </summary>
public virtual ICollection<IdentityUserRole> Roles { get; protected set; }
public IdentityRole()
{
}
public IdentityRole(long id, string name, long? tenantId = null)
: base(id)
{
RoleName = name;
TenantId = tenantId;
}
public IdentityRole SetName(string roleName)
{
RoleName = roleName;
return this;
}
}