IEntity.cs 348 B

123456789101112131415161718
  1. using System.ComponentModel.DataAnnotations.Schema;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace MTWorkHR.Core.Entities.Base
  4. {
  5. public interface IEntity
  6. {
  7. [Column(Order = 0)]
  8. long Id { get; set; }
  9. }
  10. public interface IEntity<TKey>
  11. {
  12. [Column(Order = 0)]
  13. TKey Id { get; set; }
  14. }
  15. }