| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using Abp.Domain.Entities;
- using Abp.Events.Bus.Entities;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace Abp.EntityHistory
- {
- [Table("AbpEntityChanges")]
- public class EntityChange : Entity<long>, IMayHaveTenant
- {
- /// <summary>
- /// Maximum length of <see cref="EntityId"/> property.
- /// Value: 48.
- /// </summary>
- public const int MaxEntityIdLength = 48;
- /// <summary>
- /// Maximum length of <see cref="EntityTypeFullName"/> property.
- /// Value: 192.
- /// </summary>
- public const int MaxEntityTypeFullNameLength = 192;
- /// <summary>
- /// ChangeTime.
- /// </summary>
- public virtual DateTime ChangeTime { get; set; }
- /// <summary>
- /// ChangeType.
- /// </summary>
- public virtual EntityChangeType ChangeType { get; set; }
- /// <summary>
- /// Gets/sets change set id, used to group entity changes.
- /// </summary>
- public virtual long EntityChangeSetId { get; set; }
- /// <summary>
- /// Gets/sets primary key of the entity.
- /// </summary>
- [StringLength(MaxEntityIdLength)]
- public virtual string EntityId { get; set; }
- /// <summary>
- /// FullName of the entity type.
- /// </summary>
- [StringLength(MaxEntityTypeFullNameLength)]
- public virtual string EntityTypeFullName { get; set; }
- /// <summary>
- /// TenantId.
- /// </summary>
- public virtual int? TenantId { get; set; }
- /// <summary>
- /// PropertyChanges.
- /// </summary>
- public virtual ICollection<EntityPropertyChange> PropertyChanges { get; set; }
- #region Not mapped
- [NotMapped]
- public virtual object EntityEntry { get; set; }
- #endregion
- }
- }
|