From 4443d55057508fedbba5e8b7e0d0053a1e9eab4c Mon Sep 17 00:00:00 2001 From: hello Date: Tue, 25 Mar 2025 15:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/helloshop/migration-dataseeding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/helloshop/migration-dataseeding.md b/notes/helloshop/migration-dataseeding.md index e8199b0..d83e9cf 100644 --- a/notes/helloshop/migration-dataseeding.md +++ b/notes/helloshop/migration-dataseeding.md @@ -18,7 +18,7 @@ dotnet ef database update await dbContext.Database.EnsureCreatedAsync(); ``` -`EnsureCreatedAsync` 会创建数据库,并会创建所有表,但不会应用迁移脚本,适用于开发环境。 +`EnsureCreatedAsync` 会创建数据库(如果不存在),并会创建所有表,但不会应用迁移脚本,适用于开发环境。 ## 使用代码将最新迁移脚本应用到数据库