-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
EntityChange.cs
69 lines (57 loc) · 1.91 KB
/
EntityChange.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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>
[MaxLength(MaxEntityIdLength)]
public virtual string EntityId { get; set; }
/// <summary>
/// FullName of the entity type.
/// </summary>
[MaxLength(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
}
}