IdentityUserRole<TKey> Class

Definition

Represents the link between a user and a role.

C#
public class IdentityUserRole<TKey> where TKey : IEquatable<TKey>

Type Parameters

TKey

The type of the primary key used for users and roles.

Inheritance
IdentityUserRole<TKey>

Constructors

Properties

RoleId

Gets or sets the primary key of the role that is linked to the user.

UserId

Gets or sets the primary key of the user that is linked to a role.

Applies to

Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0