Browse Source

Fix PostgreSQL document

pull/2587/head
Yunus Emre Kalkan 7 years ago
committed by GitHub
parent
commit
13ac954cf7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      docs/en/Entity-Framework-Core-PostgreSQL.md

10
docs/en/Entity-Framework-Core-PostgreSQL.md

@ -12,12 +12,12 @@ Find ***YourProjectName*EntityFrameworkCoreModule** class inside the `.EntityFra
## UsePostgreSql() ## UsePostgreSql()
Find `UseSqlServer()` calls in your solution, replace with `UsePostgreSql()`. Check the following files: Find `UseSqlServer()` call in *YourProjectName*EntityFrameworkCoreModule.cs inside the `.EntityFrameworkCore` project and replace with `UsePostgreSql()`.
* *YourProjectName*EntityFrameworkCoreModule.cs inside the `.EntityFrameworkCore` project.
* *YourProjectName*MigrationsDbContextFactory.cs inside the `.EntityFrameworkCore.DbMigrations` project.
> Depending on your solution structure, you may find more code files need to be changed. Find `UseSqlServer()` call in *YourProjectName*MigrationsDbContextFactory.cs inside the `.EntityFrameworkCore.DbMigrations` project and replace with `UseNpgsql()`.
> Depending on your solution structure, you may find more `UseSqlServer()` calls that needs to be changed.
## Change the Connection Strings ## Change the Connection Strings
@ -38,4 +38,4 @@ Run the `.DbMigrator` project to create the database and seed the initial data.
## Run the Application ## Run the Application
It is ready. Just run the application and enjoy coding. It is ready. Just run the application and enjoy coding.

Loading…
Cancel
Save