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"); /// /// 记录创建或最后修改时间 ///