领域事件预备测试

This commit is contained in:
2024-09-26 17:34:21 +08:00
parent 45c74694f2
commit b5e756ffa3
6 changed files with 98 additions and 1 deletions
+2
View File
@@ -21,6 +21,7 @@ public abstract class Entity : IEntity<Guid>
public Guid Id { get; set; }
#region
[JsonIgnore]
private readonly List<DomainEvent> _domainEvents = [];
@@ -41,6 +42,7 @@ public abstract class Entity : IEntity<Guid>
{
_domainEvents.Clear();
}
#endregion
}
#region