Nucleus .Net Core CMS

Models.Role Class

Namespace: Nucleus.Abstractions.Models
Assembly: Nucleus.Abstractions.dll
Represents a role.

Remarks

Roles provide access rights to users who belong to them for the site and it's pages and modules.

Properties

Id Property

Unique record identifier.

Name Property

Role Name
Remarks
Role names are displayed in the administrative interface.

RoleGroup Property

Role Group
Remarks
Role groups can be used to categorize roles.

Description Property

Role Description
Remarks
Role descriptions are for reference purposes only. They are displayed in the administrative interface.

Type Property

Role Type
Remarks
Role types can be combined to restrict the ability of administrators to change the role, or add/remove users.

Users Property

A list of users who belong to the role.
Remarks
This property exists primarily to establish a relationship for Entity-framework, but may be used in the future for other purposes.

Methods

Equals (Object) Method

Equals (Object other)
Determines whether two Role instances are equal by comparing their Ids.
Parameters
Name Type
other Object

GetHashCode

GetHashCode ()
Executes the default hash function.
Returns
A hash code for the current object.
Remarks
This implementation exists to prevent a CS0659 compiler warning