CodeLiturgy.Dashboard/BlueWest.Data.Capital/Application/ApplicationUserClaim/ApplicationUserClaim.cs

40 lines
1.0 KiB
C#
Raw Normal View History

2022-09-10 00:33:17 +03:00
using Microsoft.AspNetCore.Identity;
namespace BlueWest.WebApi.Context.Users;
/// <inheritdoc />
public class ApplicationUserClaim : IdentityUserClaim<string>
{
2022-09-11 01:22:04 +03:00
/// <inheritdoc />
public sealed override int Id { get; set; }
#region User
2022-09-11 01:22:04 +03:00
/// <inheritdoc />
public sealed override string UserId { get; set; }
/// <summary>
/// Application User entity
/// </summary>
public ApplicationUser ApplicationUser { get; set; }
#endregion
2022-09-11 01:22:04 +03:00
/// <inheritdoc />
public sealed override string ClaimType { get; set; }
/// <inheritdoc />
public sealed override string ClaimValue { get; set; }
public ApplicationUserClaim(ApplicationUserClaim applicationUserClaim)
{
Id = applicationUserClaim.Id;
UserId = applicationUserClaim.UserId;
ApplicationUser = applicationUserClaim.ApplicationUser;
2022-09-11 01:22:04 +03:00
ClaimType = applicationUserClaim.ClaimType;
ClaimValue = applicationUserClaim.ClaimValue;
}
public ApplicationUserClaim()
{
}
2022-09-10 00:33:17 +03:00
}