IModificationAudited.cs 975 B

123456789101112131415161718192021222324252627
  1. namespace Abp.Domain.Entities.Auditing
  2. {
  3. /// <summary>
  4. /// This interface is implemented by entities that is wanted to store modification information (who and when modified lastly).
  5. /// Properties are automatically set when updating the <see cref="IEntity"/>.
  6. /// </summary>
  7. public interface IModificationAudited : IHasModificationTime
  8. {
  9. /// <summary>
  10. /// Last modifier user for this entity.
  11. /// </summary>
  12. long? LastModifierUserId { get; set; }
  13. }
  14. /// <summary>
  15. /// Adds navigation properties to <see cref="IModificationAudited"/> interface for user.
  16. /// </summary>
  17. /// <typeparam name="TUser">Type of the user</typeparam>
  18. public interface IModificationAudited<TUser> : IModificationAudited
  19. where TUser : IEntity<long>
  20. {
  21. /// <summary>
  22. /// Reference to the last modifier user of this entity.
  23. /// </summary>
  24. TUser LastModifierUser { get; set; }
  25. }
  26. }