Update docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md

Co-authored-by: Qingxiao Ren <rqx110@163.com>
pull/6345/head
liangshiwei 4 years ago committed by GitHub
parent b71e1294af
commit 76a7fdcfcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 类中找到以下代码:

Loading…
Cancel
Save