/// <summary> /// Initializes a new instance of the <see cref="EfUnitOfWork"/> class. /// </summary> /// <param name="ambientContextManager">The transaction manager.</param> /// <param name="dbContextContainer">The context container.</param> /// <param name="parent">The parent.</param> /// <remarks></remarks> protected internal EfUnitOfWork(AmbientContextManagerBase ambientContextManager, IDbContextContainer dbContextContainer, UnitOfWorkBase parent) : base(ambientContextManager, parent) { if (dbContextContainer == null) { throw new ArgumentNullException("dbContextContainer"); } _DbContextContianer = dbContextContainer; }
/// <summary> /// Initializes a new instance of the <see cref="EfUnitOfWork"/> class. /// </summary> /// <param name="ambientContextManager">The transaction manager.</param> /// <param name="dbContextContainer">The context container.</param> /// <remarks></remarks> protected internal EfUnitOfWork(AmbientContextManagerBase ambientContextManager, IDbContextContainer dbContextContainer) : this(ambientContextManager, dbContextContainer, null) { }