| 12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using Abp.Domain.Entities.Auditing;
- namespace Abp.Application.Services.Dto
- {
- /// <summary>
- /// A shortcut of <see cref="FullAuditedEntityDto{TPrimaryKey}"/> for most used primary key type (<see cref="int"/>).
- /// </summary>
- [Serializable]
- public abstract class FullAuditedEntityDto : FullAuditedEntityDto<int>
- {
- }
- /// <summary>
- /// This class can be inherited for simple Dto objects those are used for entities implement <see cref="IFullAudited{TUser}"/> interface.
- /// </summary>
- /// <typeparam name="TPrimaryKey">Type of primary key</typeparam>
- [Serializable]
- public abstract class FullAuditedEntityDto<TPrimaryKey> : AuditedEntityDto<TPrimaryKey>, IFullAudited
- {
- /// <summary>
- /// Is this entity deleted?
- /// </summary>
- public bool IsDeleted { get; set; }
- /// <summary>
- /// Deleter user's Id, if this entity is deleted,
- /// </summary>
- public long? DeleterUserId { get; set; }
- /// <summary>
- /// Deletion time, if this entity is deleted,
- /// </summary>
- public DateTime? DeletionTime { get; set; }
- }
- }
|