| 123456789101112131415161718192021222324252627 |
- namespace Abp.Domain.Entities.Auditing
- {
- /// <summary>
- /// This interface is implemented by entities that is wanted to store creation information (who and when created).
- /// Creation time and creator user are automatically set when saving <see cref="Entity"/> to database.
- /// </summary>
- public interface ICreationAudited : IHasCreationTime
- {
- /// <summary>
- /// Id of the creator user of this entity.
- /// </summary>
- long? CreatorUserId { get; set; }
- }
- /// <summary>
- /// Adds navigation properties to <see cref="ICreationAudited"/> interface for user.
- /// </summary>
- /// <typeparam name="TUser">Type of the user</typeparam>
- public interface ICreationAudited<TUser> : ICreationAudited
- where TUser : IEntity<long>
- {
- /// <summary>
- /// Reference to the creator user of this entity.
- /// </summary>
- TUser CreatorUser { get; set; }
- }
- }
|