Table of Contents

Class IdentityRoleClaim<TKey>

Namespace
LinqToDB.Identity
Assembly
LinqToDB.Identity.dll

Represents a claim that is granted to all users within a role.

public class IdentityRoleClaim<TKey> : IIdentityRoleClaim<TKey>, IClameConverter where TKey : IEquatable<TKey>

Type Parameters

TKey

The type of the primary key of the role associated with this claim.

Inheritance
IdentityRoleClaim<TKey>
Implements

Properties

ClaimType

Gets or sets the claim type for this claim.

public virtual string ClaimType { get; set; }

Property Value

string

ClaimValue

Gets or sets the claim value for this claim.

public virtual string ClaimValue { get; set; }

Property Value

string

Id

Gets or sets the identifier for this role claim.

public virtual int Id { get; set; }

Property Value

int

RoleId

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

public virtual TKey RoleId { get; set; }

Property Value

TKey

Methods

InitializeFromClaim(Claim)

Initializes by copying ClaimType and ClaimValue from the other claim.

public virtual void InitializeFromClaim(Claim other)

Parameters

other Claim

The claim to initialize from.

ToClaim()

Constructs a new claim with the type and value.

public virtual Claim ToClaim()

Returns

Claim