Ejemplo n.º 1
0
 public void Add(TAggregateRoot aggregateRoot)
 {
     mongoDBRepositoryContext.RegisterNew(aggregateRoot);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds an aggregate root to the repository.
 /// </summary>
 /// <param name="aggregateRoot">The aggregate root to be added to the repository.</param>
 protected override void DoAdd(TAggregateRoot entity)
 {
     mongoDBRepositoryContext.RegisterNew(entity);
 }