IdentityRole<TKey> Class

Summary

Represents a Role entity

Syntax

public class IdentityRole<TKey> where TKey : IEquatable<TKey>

GitHub

View on GitHub

class Microsoft.AspNet.Identity.EntityFramework.IdentityRole<TKey>

Constructors

IdentityRole()
public IdentityRole()
IdentityRole(System.String)

Constructor

public IdentityRole(string roleName)

Properties

Claims()

Navigation property for claims in the role

Return type:System.Collections.Generic.ICollection{Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim{{TKey}}}
public virtual ICollection<IdentityRoleClaim<TKey>> Claims { get; }
ConcurrencyStamp()

A random value that should change whenever a role is persisted to the store

Return type:System.String
public virtual string ConcurrencyStamp { get; set; }
Id()

Role id

Return type:{TKey}
public virtual TKey Id { get; set; }
Name()

Role name

Return type:System.String
public virtual string Name { get; set; }
NormalizedName()
Return type:System.String
public virtual string NormalizedName { get; set; }
Users()

Navigation property for users in the role

Return type:System.Collections.Generic.ICollection{Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole{{TKey}}}
public virtual ICollection<IdentityUserRole<TKey>> Users { get; }

Methods

ToString()

Returns a friendly name

Return type:System.String
public override string ToString()