React to Identity changes

This commit is contained in:
Hao Kung 2014-07-15 13:05:07 -07:00
parent 30df49535c
commit 53e4626127
4 changed files with 6 additions and 6 deletions

View File

@ -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>
{

View File

@ -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

View File

@ -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>
{

View File

@ -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