Table of Contents

Class UserClaimSqlModel

Namespace
OpenSettings.Domains.Sql.Entities
Assembly
OpenSettings.dll

Represents a user-claim entity.

[Table("UserClaims")]
public class UserClaimSqlModel : EntityBase<int>
Inheritance
UserClaimSqlModel
Inherited Members

Properties

Description

The description of the claim.

public string Description { get; set; }

Property Value

string

GroupClaimMappings

The collection of user group-claim mappings assigned to the user claim.

public virtual ICollection<UserGroupClaimMappingModel> GroupClaimMappings { get; set; }

Property Value

ICollection<UserGroupClaimMappingModel>

RoleClaimMappings

The collection of user role-claim mappings assigned to the user claim.

public virtual ICollection<UserRoleClaimMappingModel> RoleClaimMappings { get; set; }

Property Value

ICollection<UserRoleClaimMappingModel>

Slug

An url friendly version of the ?, generated by trimming, converting to lowercase,
and replacing spaces or special characters with hyphens (using ToSlug(string) extension method).

public string Slug { get; set; }

Property Value

string

Type

The claim type.

public string Type { get; set; }

Property Value

string

TypeLowercase

The lowercase version of the Type, typically used for case-insensitive comparisons.

public string TypeLowercase { get; set; }

Property Value

string

UserClaimMappings

The collection of user-claim mappings assigned to the user claim.

public virtual ICollection<UserClaimMappingSqlModel> UserClaimMappings { get; set; }

Property Value

ICollection<UserClaimMappingSqlModel>

Value

The claim value.

public string Value { get; set; }

Property Value

string

ValueLowercase

The lowercase version of the Value, typically used for case-insensitive comparisons.

public string ValueLowercase { get; set; }

Property Value

string

Methods

InitializeFromClaim(Claim)

Initializes the entity's properties from the given claim.

public virtual void InitializeFromClaim(Claim claim)

Parameters

claim Claim

The claim to extract data from.

ToClaim()

Converts the entity into a Claim instance.

public virtual Claim ToClaim()

Returns

Claim

A new Claim object with the same type and value.