Table of Contents

Class UserRoleSqlModel

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

Represents a user role entity.

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

Properties

Name

The name of the user role.

public string Name { get; set; }

Property Value

string

NameLowercase

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

public string NameLowercase { get; set; }

Property Value

string

RoleClaimMappings

The collection of user role-claim mappings associated with this user role.

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

Property Value

ICollection<UserRoleClaimMappingModel>

RoleGroupMappings

The collection of role-group mappings associated with this user role.

public virtual ICollection<UserRoleGroupMappingModel> RoleGroupMappings { get; set; }

Property Value

ICollection<UserRoleGroupMappingModel>

Slug

An url friendly version of the Name, 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

UserRoleMappings

The collection of user-role mappings associated with this user role.

public virtual ICollection<UserRoleMappingSqlModel> UserRoleMappings { get; set; }

Property Value

ICollection<UserRoleMappingSqlModel>