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