IEntityDto.cs 572 B

12345678910111213141516171819202122
  1. namespace Abp.Application.Services.Dto
  2. {
  3. /// <summary>
  4. /// A shortcut of <see cref="IEntityDto{TPrimaryKey}"/> for most used primary key type (<see cref="int"/>).
  5. /// </summary>
  6. public interface IEntityDto : IEntityDto<int>
  7. {
  8. }
  9. /// <summary>
  10. /// Defines common properties for entity based DTOs.
  11. /// </summary>
  12. /// <typeparam name="TPrimaryKey"></typeparam>
  13. public interface IEntityDto<TPrimaryKey>
  14. {
  15. /// <summary>
  16. /// Id of the entity.
  17. /// </summary>
  18. TPrimaryKey Id { get; set; }
  19. }
  20. }