Exemple #1
0
 public UnitOfWork(DbConnection existingConnection, bool contextOwnsConnection,
                   Aquarius.Seedwork.Aggregates.IAggregateUpdateStrategy aggregateUpdateStrategy) : base(existingConnection, contextOwnsConnection)
 {
     if (aggregateUpdateStrategy == null)
     {
         throw new ArgumentNullException("aggregateUpdateStrategy");
     }
     this.AggregateUpdateStrategy = aggregateUpdateStrategy;
 }
Exemple #2
0
 public UnitOfWork(string nameOrConnectionString, Aquarius.Seedwork.Aggregates.IAggregateUpdateStrategy aggregateUpdateStrategy)
     : base(nameOrConnectionString)
 {
     if (aggregateUpdateStrategy == null)
     {
         throw new ArgumentNullException("aggregateUpdateStrategy");
     }
     this.AggregateUpdateStrategy = aggregateUpdateStrategy;
 }