附件增加主键Key标记

This commit is contained in:
Falcon 2024-08-02 15:07:23 +08:00
parent 3ed9596abe
commit 62d6d6d920

View File

@ -1,4 +1,6 @@
namespace CalendarNotepad.Models using System.ComponentModel.DataAnnotations;
namespace CalendarNotepad.Models
{ {
/// <summary> /// <summary>
/// 附件文件单元 /// 附件文件单元
@ -8,6 +10,7 @@
/// <summary> /// <summary>
/// 文件指纹ID /// 文件指纹ID
/// </summary> /// </summary>
[Key]
public string? FileId { get; set; } public string? FileId { get; set; }
/// <summary> /// <summary>
/// 文件内容 /// 文件内容