Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
robson-paproski authored Sep 10, 2017
1 parent 75ae537 commit b05b693
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ Follow the steps below to add to your project
3. In your ApplicationUser class inside Models folder, change ```using Microsoft.AspNetCore.Identity;``` to ```using AspNetCore.Identity.PostgreSQL;```
5. In your startup.cs class remove any reference to the ApplicationDbContext and the line
```.AddEntityFrameworkStores\<ApplicationDbContext\>() ```
```.AddEntityFrameworkStores<ApplicationDbContext>() ```
below
services.AddIdentity\<ApplicationUser, IdentityRole\>()"
6. In your startup class, add the following lines bellow services.AddIdentity\<ApplicationUser, IdentityRole\>()
```.AddUserStore\<UserStore\<ApplicationUser\>\>()
.AddRoleStore\<RoleStore\<IdentityRole\>\>()```
```.AddUserStore<UserStore<ApplicationUser>>()
.AddRoleStore<RoleStore<IdentityRole>>()```
7. In your startup class, add ```using IdentityRole = AspNetCore.Identity.PostgreSQL.IdentityRole;``` in the using section.
Expand Down

0 comments on commit b05b693

Please sign in to comment.