Browse Source
Update PostgreSQL-Integration.md
Add some necessary steps and provide more information of connectionstring.
pull/2096/head
xyfy
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
docs/en/Best-Practices/PostgreSQL-Integration.md
@ -9,6 +9,11 @@
- Replace the `AbpEntityFrameworkCoreSqlServerModule` with the `AbpEntityFrameworkCorePostgreSqlModule`
- Replace the `options.UseSqlServer()` with the `options.UsePostgreSql()`
- In other projects update the PostgreSQL connection string in necessary `appsettings.json` files
- more info of [PostgreSQL connection strings ](https://www.connectionstrings.com/postgresql/ ),You need to pay attention to `Npgsql` in this document
### EntityFrameworkCore.DbMigrations Project Update
- Update to use PostgreSQL in `XXXMigrationsDbContextFactory`
- Replace the `new DbContextOptionsBuilder<XXXMigrationsDbContext>().UseSqlServer()` with the `new DbContextOptionsBuilder<XXXMigrationsDbContext>().UseNpgsql()`
#### Delete Existing Migrations