From de983ebabbc7b59715b718e0ab93a908fdd451fd Mon Sep 17 00:00:00 2001 From: xyfy Date: Wed, 6 Nov 2019 15:32:35 +0800 Subject: [PATCH] Update PostgreSQL-Integration.md Add some necessary steps and provide more information of connectionstring. --- docs/en/Best-Practices/PostgreSQL-Integration.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/en/Best-Practices/PostgreSQL-Integration.md b/docs/en/Best-Practices/PostgreSQL-Integration.md index 9b0bf40dc2..cc7cd54f12 100644 --- a/docs/en/Best-Practices/PostgreSQL-Integration.md +++ b/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().UseSqlServer()` with the `new DbContextOptionsBuilder().UseNpgsql()` #### Delete Existing Migrations