using Infrastructure.Domain; using System; using System.ComponentModel.DataAnnotations; namespace IoT.Shared.Application.Domain.Entities { [Display(Name = "用户角色")] [Scope(ScopeAttribute.PlatformAll | ScopeAttribute.OrganAll)] public class UserRole : BaseEntity { public Guid UserId { get; set; } public Guid RoleId { get; set; } public User User { get; set; } public Role Role { get; set; } } }