Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
fixed markdown syntax / indentation / grammar
  • Loading branch information
totano authored Jul 6, 2016
1 parent 890b422 commit 24964a9
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,26 @@ Follow the steps below to add to your project

2. In your MVC project, replace all references from "using Microsoft.AspNetCore.Identity.EntityFrameworkCore;" with "using AspNetCore.Identity.PostgreSQL;".

3. You can remove every reference using entity framework for identity.
3. You should remove every reference to entity framework usage for identity.

4. In this version, the string connection is taken by config.json file, containing
"
{
"DefaultConnection": "Server = xxx; Port = 5432; Database = db; User Id = postgres; Password = pass"
}"
4. In this version, the string connection is taken by config.json file, containing
"
{
"DefaultConnection": "Server = xxx; Port = 5432; Database = db; User Id = postgres; Password = pass"
}"

5. If you was using entity framework with identity, in your startup.cs class, remove the line .AddEntityFrameworkStores<ApplicationDbContext>() below of "services.AddIdentity<ApplicationUser, IdentityRole>()"
5. If you were using entity framework for identity, in your startup.cs class remove the line
.AddEntityFrameworkStores\<ApplicationDbContext\>()
below
services.AddIdentity\<ApplicationUser, IdentityRole\>()"

6. In your startup class, add the following lines bellow of services.AddIdentity<ApplicationUser, IdentityRole>()
.AddUserStore<UserStore<ApplicationUser>>()
.AddRoleStore<RoleStore<IdentityRole>>()
6. In your startup class, add the following lines bellow services.AddIdentity\<ApplicationUser, IdentityRole\>()
.AddUserStore\<UserStore\<ApplicationUser\>\>()
.AddRoleStore\<RoleStore\<IdentityRole\>\>()

7. Last but not least, execute the SQL script found in the solution against your database in pgAdmin (or via the command line).


In this repo also contain a test project. You just need to modified the config.json to your database, and exec the SQL File included.
This repo also contains a test project. You just need to modifiy the config.json to connect to your database, and exec the SQL script included.

If you have any question feel free to open an issue
If you have any questions feel free to open an issue

0 comments on commit 24964a9

Please sign in to comment.