From b9aa49d12de5c5facfc02cf1b818bbcaa92e5731 Mon Sep 17 00:00:00 2001 From: hello Date: Wed, 17 Apr 2024 22:27:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=8D=E5=A4=8D=E6=80=A7?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/helloshop/product-service.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/notes/helloshop/product-service.md b/notes/helloshop/product-service.md index 6c41856..8a26420 100644 --- a/notes/helloshop/product-service.md +++ b/notes/helloshop/product-service.md @@ -172,6 +172,19 @@ CatalogPermissionDefinitionProvider.en-US.resx CatalogPermissionDefinitionProvider.zh-CN.resx ``` +## 实体属性本地化 + +```csharp +namespace HelloWorld.ProductService.Entities.Products +{ + public class Product + { + [Display(Name = "Product_Name")] + public string Name { get; set; } + } +} +``` + ## 重复性工作 重复性工作可以通过代码生成工具来减少,例如 Visual Studio 插件, T4 模板, Roslyn 等。 \ No newline at end of file