5 types derived from IdentityRole
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (4)
UserStoreGuidKeyTest.cs (1)
18public class GuidRole : IdentityRole<Guid>
UserStoreIntKeyTest.cs (1)
17public class IntRole : IdentityRole<int>
UserStoreStringKeyTest.cs (1)
18public class StringRole : IdentityRole<string>
UserStoreWithGenericsTest.cs (1)
301public class MyIdentityRole : IdentityRole<string>
Microsoft.Extensions.Identity.Stores (1)
IdentityRole.cs (1)
11public class IdentityRole : IdentityRole<string>
22 references to IdentityRole
Microsoft.AspNetCore.Identity.EntityFrameworkCore (10)
IdentityDbContext.cs (2)
51where TRole : IdentityRole<TKey> 79where TRole : IdentityRole<TKey>
IdentityEntityFrameworkBuilderExtensions.cs (1)
41var identityRoleType = FindGenericBaseType(roleType, typeof(IdentityRole<>));
RoleStore.cs (4)
16where TRole : IdentityRole<string> 32where TRole : IdentityRole<string> 52where TRole : IdentityRole<TKey> 75where TRole : IdentityRole<TKey>
UserStore.cs (3)
49where TRole : IdentityRole<string> 69where TRole : IdentityRole<TKey> 97where TRole : IdentityRole<TKey>
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (7)
SqlStoreTestBase.cs (1)
21where TRole : IdentityRole<TKey>, new()
UserStoreGuidKeyTest.cs (2)
78var builder = services.AddIdentityCore<IdentityUser<Guid>>().AddRoles<IdentityRole<Guid>>().AddEntityFrameworkStores<TestDbContext>(); 84Assert.NotNull(sp.GetRequiredService<RoleManager<IdentityRole<Guid>>>());
UserStoreIntKeyTest.cs (2)
56var builder = services.AddIdentityCore<IdentityUser<int>>().AddRoles<IdentityRole<int>>().AddEntityFrameworkStores<TestDbContext>(); 62Assert.NotNull(sp.GetRequiredService<RoleManager<IdentityRole<int>>>());
UserStoreStringKeyTest.cs (2)
57var builder = services.AddIdentityCore<IdentityUser<string>>().AddRoles<IdentityRole<string>>().AddEntityFrameworkStores<TestDbContext>(); 63Assert.NotNull(sp.GetRequiredService<RoleManager<IdentityRole<string>>>());
Microsoft.Extensions.Identity.Stores (5)
IdentityRole.cs (3)
9/// The default implementation of <see cref="IdentityRole{TKey}"/> which uses a string as the primary key. 44/// Initializes a new instance of <see cref="IdentityRole{TKey}"/>. 49/// Initializes a new instance of <see cref="IdentityRole{TKey}"/>.
RoleStoreBase.cs (1)
26where TRole : IdentityRole<TKey>
UserStoreBase.cs (1)
1001where TRole : IdentityRole<TKey>