From cfae4988f825002e4b15fbff66afe5aca553a998 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 17 Mar 2020 14:21:18 +0800 Subject: [PATCH] Added DBMS restrictions in Entity-Framework-Core-Other-DBMS. Resolve #2632 --- docs/en/Entity-Framework-Core-Other-DBMS.md | 16 +++++++++++++++- docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/docs/en/Entity-Framework-Core-Other-DBMS.md b/docs/en/Entity-Framework-Core-Other-DBMS.md index a08ac6d169..d902a8d93e 100644 --- a/docs/en/Entity-Framework-Core-Other-DBMS.md +++ b/docs/en/Entity-Framework-Core-Other-DBMS.md @@ -91,4 +91,18 @@ Run the `.DbMigrator` project to create the database and seed the initial data. ## Run the Application -It is ready. Just run the application and enjoy coding. \ No newline at end of file +It is ready. Just run the application and enjoy coding. + +## DBMS restrictions + +Different DBMS may have some restrictions, such as the maximum length of field names, index length, etc. +The module may provide some built-in solutions. You can configure it via `ModelBuilder`. eg: `Identity Server` module. + +```csharp +builder.ConfigureIdentityServer(options => +{ + options.DatabaseProvider = EfCoreDatabaseProvider.MySql; +}); +``` + +Related discussions: https://github.com/abpframework/abp/issues/1920 \ No newline at end of file diff --git a/docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md b/docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md index a1af1c5849..ca12d7524f 100644 --- a/docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md +++ b/docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md @@ -91,4 +91,18 @@ builder.ConfigureIdentityServer(options => ## 运行应用程序 -它已准备就绪, 只需要运行该应用程序与享受编码. \ No newline at end of file +它已准备就绪, 只需要运行该应用程序与享受编码. + +## DBMS限制 + +不同的DBMS可能存在一些限制, 如字段名称的最大长度, 索引长度等等. +模块可能提供了一些内置的解决方案. 你可以通过`ModelBuilder`来配置它 如: Identity Server模块 + +```csharp +builder.ConfigureIdentityServer(options => +{ + options.DatabaseProvider = EfCoreDatabaseProvider.MySql; +}); +``` + +相关讨论: https://github.com/abpframework/abp/issues/1920 \ No newline at end of file