附件增加主键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>
/// 附件文件单元
@ -8,6 +10,7 @@
/// <summary>
/// 文件指纹ID
/// </summary>
[Key]
public string? FileId { get; set; }
/// <summary>
/// 文件内容