CodeLiturgy.Dashboard/CodeLiturgy.Views/Application/ApplicationUserRole/ApplicationUserRole.cs

29 lines
691 B
C#

using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Identity;
using MapTo;
namespace CodeLiturgy.Data.Application.Users
{
/// <inheritdoc />
[MapFrom(typeof(ApplicationUserRoleUnique))]
public partial class ApplicationUserRole : IdentityUserRole<string>
{
/// <summary>
/// User entity of this role
/// </summary>
public ApplicationUser User { get; set; }
public ApplicationRole ApplicationRole { get; set; }
/// <inheritdoc />
public sealed override string UserId { get; set; }
/// <inheritdoc />
public sealed override string RoleId { get; set; }
}
}