From 76a7fdcfcbd5568d6fc636ef0f38073f03d9c769 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Thu, 14 Jan 2021 09:15:09 +0800 Subject: [PATCH] Update docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md Co-authored-by: Qingxiao Ren --- docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md b/docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md index a60732f1ee..93b8a52db9 100644 --- a/docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md +++ b/docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md @@ -64,7 +64,7 @@ MySQL连接字符串与SQL Server连接字符串不同. 所以检查你的解决 ## 更改迁移DbContext Factory -启动模板包含***YourProjectName*MigrationsDbContextFactory**,这是EF Core控制台命令所必须的类(比如[Add-Migration](https://docs.microsoft.com/en-us/ef/ef6/modeling/code-first/migrations/#generating--running-migrations)和[Update-Database](https://docs.microsoft.com/en-us/ef/ef6/modeling/code-first/migrations/#generating--running-migrations)),在切换到MySql数据库时,我们同时也需要修改`DbContextOptionsBuilder` +启动模板包含***YourProjectName*MigrationsDbContextFactory**类,这是EF Core控制台命令所必须的类(比如[Add-Migration](https://docs.microsoft.com/en-us/ef/ef6/modeling/code-first/migrations/#generating--running-migrations)和[Update-Database](https://docs.microsoft.com/en-us/ef/ef6/modeling/code-first/migrations/#generating--running-migrations)),在切换到MySql数据库时,我们同时也需要修改`DbContextOptionsBuilder` 在 *YourProjectName*MigrationsDbContextFactory 类中找到以下代码: