-
Notifications
You must be signed in to change notification settings - Fork 50
Quick Start Updates
DerekJarvis edited this page Mar 5, 2015
·
1 revision
- Remove reference to Microsoft.AspNet.Identity.EntityFramework
- Remove line 36: app.CreatePerOwinContext(AddressOf ApplicationDbContext.Create)
##IdentityConfig.vb
-
Remove reference to Microsoft.AspNet.Identity.EntityFramework
-
Add reference to NHibernate.AspNet.Identity
-
Line 17: Dim manager = New ApplicationUserManager(New UserStore(Of ApplicationUser)(context.Get(Of ApplicationDbContext)()))
What is to be done about the reference to ApplicationDbContext? It seems the constructor needs a session, where should it come from?
##AccountController.vb
- Change line 73 to: Dim userInfo As NHibernate.AspNet.Identity.IdentityUser = Await UserManager.FindByIdAsync(User.Identity.GetUserId())
- Change line 81 to: For Each linkedAccount As NHibernate.AspNet.Identity.IdentityUserLogin In userInfo.Logins
##ApplicationOAuthProvider.vb
- Remove reference to Microsoft.AspNet.Identity.EntityFramework