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