Skip to content

Commit d45b796

Browse files
committed
Loosen constraints on stores
Fixes aspnet/Identity#323
1 parent f7dd913 commit d45b796

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Microsoft.AspNet.Identity.EntityFramework/RoleStore.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
namespace Microsoft.AspNet.Identity.EntityFramework
1414
{
1515
public class RoleStore<TRole> : RoleStore<TRole, DbContext, string>
16-
where TRole : IdentityRole
16+
where TRole : IdentityRole<string>
1717
{
1818
public RoleStore(DbContext context, IdentityErrorDescriber describer = null) : base(context, describer) { }
1919
}
2020

2121
public class RoleStore<TRole, TContext> : RoleStore<TRole, TContext, string>
22-
where TRole : IdentityRole
22+
where TRole : IdentityRole<string>
2323
where TContext : DbContext
2424
{
2525
public RoleStore(TContext context, IdentityErrorDescriber describer = null) : base(context, describer) { }

src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313

1414
namespace Microsoft.AspNet.Identity.EntityFramework
1515
{
16-
public class UserStore : UserStore<IdentityUser>
16+
public class UserStore : UserStore<IdentityUser<string>>
1717
{
1818
public UserStore(DbContext context, IdentityErrorDescriber describer = null) : base(context, describer) { }
1919
}
2020

2121
public class UserStore<TUser> : UserStore<TUser, IdentityRole, DbContext>
22-
where TUser : IdentityUser, new()
22+
where TUser : IdentityUser<string>, new()
2323
{
2424
public UserStore(DbContext context, IdentityErrorDescriber describer = null) : base(context, describer) { }
2525
}
2626

2727
public class UserStore<TUser, TRole, TContext> : UserStore<TUser, TRole, TContext, string>
28-
where TUser : IdentityUser, new()
29-
where TRole : IdentityRole, new()
28+
where TUser : IdentityUser<string>, new()
29+
where TRole : IdentityRole<string>, new()
3030
where TContext : DbContext
3131
{
3232
public UserStore(TContext context, IdentityErrorDescriber describer = null) : base(context, describer) { }

0 commit comments

Comments
 (0)