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
GroupClaimMappings
The collection of user group-claim mappings assigned to the user claim.
public virtual ICollection<UserGroupClaimMappingModel> GroupClaimMappings { get; set; }
Property Value
RoleClaimMappings
The collection of user role-claim mappings assigned to the user claim.
public virtual ICollection<UserRoleClaimMappingModel> RoleClaimMappings { get; set; }
Property Value
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
Type
The claim type.
public string Type { get; set; }
Property Value
TypeLowercase
The lowercase version of the Type, typically used for case-insensitive comparisons.
public string TypeLowercase { get; set; }
Property Value
UserClaimMappings
The collection of user-claim mappings assigned to the user claim.
public virtual ICollection<UserClaimMappingSqlModel> UserClaimMappings { get; set; }
Property Value
Value
The claim value.
public string Value { get; set; }
Property Value
ValueLowercase
The lowercase version of the Value, typically used for case-insensitive comparisons.
public string ValueLowercase { get; set; }
Property Value
Methods
InitializeFromClaim(Claim)
Initializes the entity's properties from the given claim.
public virtual void InitializeFromClaim(Claim claim)
Parameters
claim
ClaimThe claim to extract data from.
ToClaim()
Converts the entity into a Claim instance.
public virtual Claim ToClaim()