Example #1
0
        /// <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;
        }
Example #2
0
        /// <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;
        }
Example #3
0
 /// <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)
 {
 }
Example #4
0
 /// <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)
 {
 }