From efdad63853a1926593e4db7a289500323a55cb97 Mon Sep 17 00:00:00 2001 From: hello Date: Sat, 23 Nov 2024 09:28:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=A8=E5=90=8D=E7=BA=A6?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/helloshop/efcore-naming-conventions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/notes/helloshop/efcore-naming-conventions.md b/notes/helloshop/efcore-naming-conventions.md index 5e28323..c580619 100644 --- a/notes/helloshop/efcore-naming-conventions.md +++ b/notes/helloshop/efcore-naming-conventions.md @@ -13,6 +13,10 @@ | KebabCaseLower | HelloShop | hello-shop | | KebabCaseUpper | HelloShop | HELLO-SHOP | +## 表名使用单数还是复数 + +EF Core 默认情况下,表名使用单数形式,可以通过约定器或者手动指定复数表名,社区对单数和复数表名的争论一直存在,没有统一的标准,但零度推荐使用单数形式。 + ## 手动指定表名和列名 ### 表名