Table of Contents

Class IdentityUserClaim<TKey>

Namespace
LinqToDB.Identity
Assembly
LinqToDB.Identity.dll

Represents a claim that a user possesses.

public class IdentityUserClaim<TKey> : IIdentityUserClaim<TKey>, IClameConverter where TKey : IEquatable<TKey>

Type Parameters

TKey

The type used for the primary key for this user that possesses this claim.

Inheritance
IdentityUserClaim<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 user claim.

public virtual int Id { get; set; }

Property Value

int

UserId

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

public virtual TKey UserId { get; set; }

Property Value

TKey

Methods

InitializeFromClaim(Claim)

Reads the type and value from the Claim.

public virtual void InitializeFromClaim(Claim claim)

Parameters

claim Claim

ToClaim()

Converts the entity into a Claim instance.

public virtual Claim ToClaim()

Returns

Claim