33 lines
868 B
C#
33 lines
868 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
namespace BlueWest.WebApi.Context.Users;
|
|
|
|
/// <inheritdoc />
|
|
public 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; }
|
|
|
|
|
|
public ApplicationUserRole() { }
|
|
|
|
public ApplicationUserRole(ApplicationUserRole applicationUserRole)
|
|
{
|
|
User = applicationUserRole.User;
|
|
UserId = applicationUserRole.UserId;
|
|
RoleId = applicationUserRole.RoleId;
|
|
ApplicationRole = applicationUserRole.ApplicationRole;
|
|
}
|
|
} |