AuditedEntityDto.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using Abp.Domain.Entities.Auditing;
  3. namespace Abp.Application.Services.Dto
  4. {
  5. /// <summary>
  6. /// A shortcut of <see cref="AuditedEntityDto{TPrimaryKey}"/> for most used primary key type (<see cref="int"/>).
  7. /// </summary>
  8. [Serializable]
  9. public abstract class AuditedEntityDto : AuditedEntityDto<int>
  10. {
  11. }
  12. /// <summary>
  13. /// This class can be inherited for simple Dto objects those are used for entities implement <see cref="IAudited{TUser}"/> interface.
  14. /// </summary>
  15. /// <typeparam name="TPrimaryKey">Type of primary key</typeparam>
  16. [Serializable]
  17. public abstract class AuditedEntityDto<TPrimaryKey> : CreationAuditedEntityDto<TPrimaryKey>, IAudited
  18. {
  19. /// <summary>
  20. /// Last modification date of this entity.
  21. /// </summary>
  22. public DateTime? LastModificationTime { get; set; }
  23. /// <summary>
  24. /// Last modifier user of this entity.
  25. /// </summary>
  26. public long? LastModifierUserId { get; set; }
  27. }
  28. }