FullAuditedEntityDto.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using Abp.Domain.Entities.Auditing;
  3. namespace Abp.Application.Services.Dto
  4. {
  5. /// <summary>
  6. /// A shortcut of <see cref="FullAuditedEntityDto{TPrimaryKey}"/> for most used primary key type (<see cref="int"/>).
  7. /// </summary>
  8. [Serializable]
  9. public abstract class FullAuditedEntityDto : FullAuditedEntityDto<int>
  10. {
  11. }
  12. /// <summary>
  13. /// This class can be inherited for simple Dto objects those are used for entities implement <see cref="IFullAudited{TUser}"/> interface.
  14. /// </summary>
  15. /// <typeparam name="TPrimaryKey">Type of primary key</typeparam>
  16. [Serializable]
  17. public abstract class FullAuditedEntityDto<TPrimaryKey> : AuditedEntityDto<TPrimaryKey>, IFullAudited
  18. {
  19. /// <summary>
  20. /// Is this entity deleted?
  21. /// </summary>
  22. public bool IsDeleted { get; set; }
  23. /// <summary>
  24. /// Deleter user's Id, if this entity is deleted,
  25. /// </summary>
  26. public long? DeleterUserId { get; set; }
  27. /// <summary>
  28. /// Deletion time, if this entity is deleted,
  29. /// </summary>
  30. public DateTime? DeletionTime { get; set; }
  31. }
  32. }