添加长度设定

This commit is contained in:
Falcon 2024-07-26 11:47:46 +08:00
parent 094447258f
commit 3767a98dde

View File

@ -11,7 +11,8 @@ namespace CalendarNotepad.Models
/// 数据主键 /// 数据主键
/// </summary> /// </summary>
[Key] [Key]
public string Id { get; set; } = Guid.NewGuid().ToString(); [SqlSugar.SugarColumn(Length = 32)]
public string Id { get; set; } = Guid.NewGuid().ToString("N");
/// <summary> /// <summary>
/// 记录创建或最后修改时间 /// 记录创建或最后修改时间
/// </summary> /// </summary>