12345678910111213141516171819202122 |
- using FreeSql.DataAnnotations;
- namespace Admin.Core.Model
- {
- public interface IEntity
- {
- }
- public class Entity<TKey> : IEntity
- {
- /// <summary>
- /// 主键Id
- /// </summary>
- [Column(Position = 1,IsIdentity = true)]
- public virtual TKey Id { get; set; }
- }
- public class Entity : Entity<long>
- {
- }
- }
|