Example #1
0
 public void RegisterDelete(IAggregateRoot aggregateRoot, IUnitWorkRepository repository)
 {
     if (!_deleteggregates.ContainsKey(aggregateRoot))
     {
         _deleteggregates.Add(aggregateRoot, repository);
     }
 }
Example #2
0
 public void RegisterSave(IAggregateRoot aggregateRoot, IUnitWorkRepository repository)
 {
     if (!_saveAggregates.ContainsKey(aggregateRoot))
     {
         _saveAggregates.Add(aggregateRoot, repository);
     }
 }
 public void Add(IAggregateRoot aggregateRoot, IUnitWorkRepository repository)
 {
     _internalCollection.Add(new AggregateUnit {
         AggregateRoot = aggregateRoot, UnitWork = repository
     });
 }