From 62d6d6d9209c6d724b06dd99b9fabd0e4cebd41d Mon Sep 17 00:00:00 2001 From: Falcon <12919280+falconfly@user.noreply.gitee.com> Date: Fri, 2 Aug 2024 15:07:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6=E5=A2=9E=E5=8A=A0=E4=B8=BB?= =?UTF-8?q?=E9=94=AEKey=E6=A0=87=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CalendarNotepad/Models/PlusFileUnit.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CalendarNotepad/Models/PlusFileUnit.cs b/CalendarNotepad/Models/PlusFileUnit.cs index 6432684..c4f2781 100644 --- a/CalendarNotepad/Models/PlusFileUnit.cs +++ b/CalendarNotepad/Models/PlusFileUnit.cs @@ -1,4 +1,6 @@ -namespace CalendarNotepad.Models +using System.ComponentModel.DataAnnotations; + +namespace CalendarNotepad.Models { /// /// 附件文件单元 @@ -8,6 +10,7 @@ /// /// 文件指纹ID /// + [Key] public string? FileId { get; set; } /// /// 文件内容