Table of Contents

Class UserRoles

Namespace
NuvTools.Security.Identity.Models
Assembly
NuvTools.Security.Identity.Models.dll

Represents the association between a user and their assigned roles.

public class UserRoles
Inheritance
UserRoles
Inherited Members

Remarks

This model is typically used for transferring or serializing role assignment data,
for example in APIs or service layers that need to list or update user roles.
It does not represent a database entity but rather a DTO (Data Transfer Object).

Properties

Roles

Gets or sets the list of role names assigned to the user.

public IList<string>? Roles { get; set; }

Property Value

IList<string>

Remarks

Each string represents a role name.
If no roles are assigned, this property may be null or an empty list.

UserId

Gets or sets the unique identifier of the user.

public int UserId { get; set; }

Property Value

int

Remarks

The identifier type is defined as int by default