123456789101112131415161718192021222324 |
- using FreeSql.DataAnnotations;
- using System.ComponentModel;
- namespace Admin.Core.Common.BaseModel
- {
- public interface IEntity
- {
- }
- public class Entity<TKey> : IEntity
- {
- /// <summary>
- /// 编号
- /// </summary>
- [Description("编号")]
- [Column(Position = 1, IsIdentity = true)]
- public virtual TKey Id { get; set; }
- }
- public class Entity : Entity<long>
- {
- }
- }
|