File tree Expand file tree Collapse file tree
src/Services/Ordering/Ordering.Domain/SeedWork Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77 public abstract class Entity
88 {
9-
109 int ? _requestedHashCode ;
11- int _Id ;
12-
13- private List < INotification > _domainEvents ;
14-
10+ int _Id ;
1511 public virtual int Id
1612 {
1713 get
@@ -24,13 +20,13 @@ protected set
2420 }
2521 }
2622
23+ private List < INotification > _domainEvents ;
2724 public List < INotification > DomainEvents => _domainEvents ;
2825 public void AddDomainEvent ( INotification eventItem )
2926 {
3027 _domainEvents = _domainEvents ?? new List < INotification > ( ) ;
3128 _domainEvents . Add ( eventItem ) ;
3229 }
33-
3430 public void RemoveDomainEvent ( INotification eventItem )
3531 {
3632 if ( _domainEvents is null ) return ;
@@ -74,7 +70,6 @@ public override int GetHashCode()
7470 return base . GetHashCode ( ) ;
7571
7672 }
77-
7873 public static bool operator == ( Entity left , Entity right )
7974 {
8075 if ( Object . Equals ( left , null ) )
You can’t perform that action at this time.
0 commit comments