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.
 
 
 
 
 

39 lines
945 B

using Easy.DDD.Domain.Entities;
namespace Identity.Api.DDD.Domain.Entites;
/// <summary>
/// 表示用户和角色之间的链接。
/// </summary>
public class IdentityUserRole : Entity<Guid>
{
public virtual Guid? TenantId { get; protected set; }
/// <summary>
/// 获取或设置链接到角色的用户的主键。
/// </summary>
public virtual Guid UserId { get; protected set; }
/// <summary>
/// 获取或设置链接到用户的角色的主键。
/// </summary>
public virtual Guid RoleId { get; protected set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime CreationTime { get; protected set; }
public IdentityUserRole()
{
}
protected internal IdentityUserRole(Guid userId, Guid roleId, Guid? tenantId)
{
UserId = userId;
RoleId = roleId;
TenantId = tenantId;
CreationTime = DateTime.Now;
}
}