CodeLiturgy.Dashboard/CodeLiturgy.Data.Application/ApplicationUserRole/ApplicationUserRole.cs

29 lines
688 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Identity;
2022-09-12 17:57:37 +03:00
using MapTo;
2022-09-27 20:12:13 +03:00
namespace BlueWest.Data.Application.Users
{
/// <inheritdoc />
2022-09-12 17:57:37 +03:00
[MapFrom(typeof(ApplicationUserRoleUnique))]
2022-09-12 17:57:37 +03:00
public partial class ApplicationUserRole : IdentityUserRole<string>
{
/// <summary>
/// User entity of this role
/// </summary>
public ApplicationUser User { get; set; }
2022-09-12 17:57:37 +03:00
public ApplicationRole ApplicationRole { get; set; }
2022-09-12 17:57:37 +03:00
/// <inheritdoc />
public sealed override string UserId { get; set; }
2022-09-12 17:57:37 +03:00
/// <inheritdoc />
public sealed override string RoleId { get; set; }
}
2022-09-12 17:57:37 +03:00
}