Browse Source
Update docs/zh-Hans/Tutorials/Part-1.md
Co-authored-by: Qingxiao Ren <rqx110@163.com>
pull/11004/head
ntwo1980
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docs/zh-Hans/Tutorials/Part-1.md
|
|
|
@ -192,7 +192,7 @@ namespace Acme.BookStore.EntityFrameworkCore |
|
|
|
|
|
|
|
本示例使用[EF Core Code First Migrations](https://docs.microsoft.com/zh-cn/ef/core/managing-schemas/migrations/).因为我们修改了数据库映射配置,我们必须创建一个新的迁移并且应用到数据库. |
|
|
|
|
|
|
|
在 `Acme.BookStore.EntityFrameworkCore.DbMigrations` 目录打开命令行终端输入以下命令: |
|
|
|
在 `Acme.BookStore.EntityFrameworkCore` 目录打开命令行终端输入以下命令: |
|
|
|
|
|
|
|
```bash |
|
|
|
dotnet ef migrations add Created_Book_Entity |
|
|
|
|