From 3767a98dde731608c1bd9b4ad6450fd5f1d3ca32 Mon Sep 17 00:00:00 2001 From: Falcon <12919280+falconfly@user.noreply.gitee.com> Date: Fri, 26 Jul 2024 11:47:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=95=BF=E5=BA=A6=E8=AE=BE?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CalendarNotepad/Models/TableBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CalendarNotepad/Models/TableBase.cs b/CalendarNotepad/Models/TableBase.cs index 639fbe9..48b5df1 100644 --- a/CalendarNotepad/Models/TableBase.cs +++ b/CalendarNotepad/Models/TableBase.cs @@ -11,7 +11,8 @@ namespace CalendarNotepad.Models /// 数据主键 /// [Key] - public string Id { get; set; } = Guid.NewGuid().ToString(); + [SqlSugar.SugarColumn(Length = 32)] + public string Id { get; set; } = Guid.NewGuid().ToString("N"); /// /// 记录创建或最后修改时间 ///