diff --git a/src/Microsoft.AspNet.Identity.EntityFramework/RoleStore.cs b/src/Microsoft.AspNet.Identity.EntityFramework/RoleStore.cs index ce4ff1561f..8adbde0568 100644 --- a/src/Microsoft.AspNet.Identity.EntityFramework/RoleStore.cs +++ b/src/Microsoft.AspNet.Identity.EntityFramework/RoleStore.cs @@ -13,13 +13,13 @@ using Microsoft.Data.Entity.Update; namespace Microsoft.AspNet.Identity.EntityFramework { public class RoleStore : RoleStore - where TRole : IdentityRole + where TRole : IdentityRole { public RoleStore(DbContext context, IdentityErrorDescriber describer = null) : base(context, describer) { } } public class RoleStore : RoleStore - where TRole : IdentityRole + where TRole : IdentityRole where TContext : DbContext { public RoleStore(TContext context, IdentityErrorDescriber describer = null) : base(context, describer) { } diff --git a/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs b/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs index 96ccb0a933..bf5c2d0828 100644 --- a/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs +++ b/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs @@ -13,20 +13,20 @@ using Microsoft.Data.Entity.Update; namespace Microsoft.AspNet.Identity.EntityFramework { - public class UserStore : UserStore + public class UserStore : UserStore> { public UserStore(DbContext context, IdentityErrorDescriber describer = null) : base(context, describer) { } } public class UserStore : UserStore - where TUser : IdentityUser, new() + where TUser : IdentityUser, new() { public UserStore(DbContext context, IdentityErrorDescriber describer = null) : base(context, describer) { } } public class UserStore : UserStore - where TUser : IdentityUser, new() - where TRole : IdentityRole, new() + where TUser : IdentityUser, new() + where TRole : IdentityRole, new() where TContext : DbContext { public UserStore(TContext context, IdentityErrorDescriber describer = null) : base(context, describer) { }