using FreeSql.DataAnnotations; using Newtonsoft.Json; using System.ComponentModel; using ZhonTai.Admin.Core.Attributes; namespace ZhonTai.Admin.Core.Entities; public interface IEntity { /// /// 主键Id /// TKey Id { get; set; } } public interface IEntity : IEntity { } public class Entity : IEntity { /// /// 主键Id /// [Description("主键Id")] [Snowflake] [Column(Position = 1, IsIdentity = false, IsPrimary = true)] [JsonProperty(Order = -2)] public virtual TKey Id { get; set; } } public class Entity : Entity { }