Microsoft.Extensions.Identity.Stores by Microsoft

<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="2.1.0" />

 IdentityRoleClaim<TKey>

public class IdentityRoleClaim<TKey> where TKey : IEquatable<TKey>
Represents a claim that is granted to all users within a role.
public virtual string ClaimType { get; set; }

Gets or sets the claim type for this claim.

public virtual string ClaimValue { get; set; }

Gets or sets the claim value for this claim.

public virtual int Id { get; set; }

Gets or sets the identifier for this role claim.

public virtual TKey RoleId { get; set; }

Gets or sets the of the primary key of the role associated with this claim.

public virtual void InitializeFromClaim(Claim other)

Initializes by copying ClaimType and ClaimValue from the other claim.

public virtual Claim ToClaim()

Constructs a new claim with the type and value.