From 8e1ae18de00e4f2e540860497b680d916b961a86 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 15 Oct 2024 13:41:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0codefirst=20=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/IRaCIS.Core.Application.xml | 2 ++ IRaCIS.Core.Infra.EFCore/CodeFirst使用说明 | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index d3787cbc9..9629d60bb 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -12677,6 +12677,8 @@ minimal api 测试 + 学习参考文档:http://fanrk.cn/%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3/MinimalApi/MinimalApi.html + 组件参考文档:https://docs.masastack.com/framework/building-blocks/minimal-apis#section-69828ff0 diff --git a/IRaCIS.Core.Infra.EFCore/CodeFirst使用说明 b/IRaCIS.Core.Infra.EFCore/CodeFirst使用说明 index f00ddbdc4..9471d9f9c 100644 --- a/IRaCIS.Core.Infra.EFCore/CodeFirst使用说明 +++ b/IRaCIS.Core.Infra.EFCore/CodeFirst使用说明 @@ -3,7 +3,7 @@ 1Ǩļ(add-migration init -Project IRaCIS.Core.Infra.EFCore ) - add-migration init + add-migration xxx 2ƳɵǨļ @@ -22,6 +22,13 @@ Script-Migration from to +ַ Ĭϳ400Ҫע + [StringLength(1000)] 1000 + [MaxLength] ԶΪ nvarchar(max) +decimal + Ĭǣ [DecimalPrecision(18, 2)] +Ŀñ磺 [DecimalPrecision(18, 4)] + # ʹdotnet Ǩ(dotnet ef dbcontext list -p IRaCIS.Core.Infra.EFCore )