Falcon.SugarApi/Falcon.SugarApi/DatabaseDefinitions/EntityIntId.cs
2024-12-03 17:36:56 +08:00

19 lines
458 B
C#

using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace Falcon.SugarApi.DatabaseDefinitions
{
/// <summary>
/// 数据表整数主键
/// </summary>
public class EntityIntId
{
/// <summary>
/// 主键 默认GUID 382c74c3-721d-4f34-80e5-57657b6cbc27
/// </summary>
[Key]
[SugarColumn(IsPrimaryKey = true,ColumnDescription = "主键")]
public int? Id { get; set; }
}
}