ZFmY
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
docs/zh-Hans/Entity-Framework-Core-Migrations.md
|
|
|
@ -235,7 +235,7 @@ public static class BackgroundJobsDbContextModelCreatingExtensions |
|
|
|
} |
|
|
|
```` |
|
|
|
|
|
|
|
此u还获取选项用于更改此模块的数据库表前缀和模式,但在这里并不重要. |
|
|
|
此扩展方法还提供了选项用于更改此模块的数据库表前缀和模式,但在这里并不重要. |
|
|
|
|
|
|
|
最终的应用程序在 `MigrationsDbContext` 类中调用扩展方法, 因此它可以确定此 `MigrationsDbContext` 维护的数据库中包含哪些模块. 如果要创建第二个数据库并将某些模块表移动到第二个数据库,则需要有第二个`MigrationsDbContext` 类,该类仅调用相关模块的扩展方法. 下一部分将详细介绍该主题. |
|
|
|
|
|
|
|
@ -883,4 +883,4 @@ public class BookStoreDbMigratorModule : AbpModule |
|
|
|
|
|
|
|
## 结论 |
|
|
|
|
|
|
|
本文档说明了如何拆分数据库以及管理Entity Framework Core解决方案的数据库迁移. 简而言之,你需要为每个不同的数据库创建一个单独的迁移项目. |
|
|
|
本文档说明了如何拆分数据库以及管理Entity Framework Core解决方案的数据库迁移. 简而言之,你需要为每个不同的数据库创建一个单独的迁移项目. |
|
|
|
|