From 73d0e325745c514dc1c0a125493a9fd8612b2ce5 Mon Sep 17 00:00:00 2001 From: FalconFly <12919280+falconfly@user.noreply.gitee.com> Date: Wed, 24 Jul 2024 09:56:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E9=95=BF=E5=BA=A6200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CalendarNotepad/Extends/DbContext.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CalendarNotepad/Extends/DbContext.cs b/CalendarNotepad/Extends/DbContext.cs index a92b87c..b4e0706 100644 --- a/CalendarNotepad/Extends/DbContext.cs +++ b/CalendarNotepad/Extends/DbContext.cs @@ -25,9 +25,11 @@ namespace CalendarNotepad.Extends /// public void DbInit() { using var db = new DbContext(); + db.CodeFirst.SetStringDefaultLength(200); db.CodeFirst.InitTables(); db.CodeFirst.InitTables(); db.CodeFirst.InitTables(); + } ///