React to Identity changes
This commit is contained in:
parent
30df49535c
commit
53e4626127
|
|
@ -1,11 +1,12 @@
|
|||
using System;
|
||||
using Microsoft.AspNet.Identity;
|
||||
using Microsoft.AspNet.Identity.EntityFramework;
|
||||
using Microsoft.Data.Entity;
|
||||
using Microsoft.Framework.OptionsModel;
|
||||
|
||||
namespace MusicStore.Models
|
||||
{
|
||||
public class ApplicationUser : User { }
|
||||
public class ApplicationUser : IdentityUser { }
|
||||
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -43,8 +43,7 @@ namespace MusicStore.Spa
|
|||
.AddSqlServer();
|
||||
|
||||
// Add Identity services to the service container
|
||||
services.AddIdentity<ApplicationUser>()
|
||||
.AddEntityFramework<ApplicationUser, ApplicationDbContext>()
|
||||
services.AddIdentitySqlServer<ApplicationDbContext, ApplicationUser>()
|
||||
.AddHttpSignIn();
|
||||
|
||||
// Add application services to the service container
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
using System;
|
||||
using Microsoft.AspNet.Identity;
|
||||
using Microsoft.AspNet.Identity.EntityFramework;
|
||||
using Microsoft.Data.Entity;
|
||||
using Microsoft.Framework.OptionsModel;
|
||||
|
||||
namespace MusicStore.Models
|
||||
{
|
||||
public class ApplicationUser : User { }
|
||||
public class ApplicationUser : IdentityUser { }
|
||||
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -44,8 +44,7 @@ namespace MusicStore
|
|||
options.UseSqlServer(configuration.Get("Data:DefaultConnection:ConnectionString")));
|
||||
|
||||
// Add Identity services to the services container
|
||||
services.AddIdentity<ApplicationUser>()
|
||||
.AddEntityFramework<ApplicationUser, ApplicationDbContext>()
|
||||
services.AddIdentitySqlServer<ApplicationDbContext, ApplicationUser>()
|
||||
.AddHttpSignIn();
|
||||
|
||||
// Add MVC services to the services container
|
||||
|
|
|
|||
Loading…
Reference in New Issue