public LinqPadUow(IIocResolver iocResolver, IConnectionStringResolver connectionStringResolver,
                   IUnitOfWorkFilterExecuter filterExecuter, IDbContextResolver dbContextResolver, IUnitOfWorkDefaultOptions defaultOptions,
                   IDbContextTypeMatcher dbContextTypeMatcher, IEfCoreTransactionStrategy transactionStrategy, ILinqPadContextGetter linqPadContextGetter)
     : base(iocResolver, connectionStringResolver, filterExecuter, dbContextResolver, defaultOptions, dbContextTypeMatcher, transactionStrategy)
 {
     Console.WriteLine("LinqPadUow.ctor");
     _linqPadContextGetter = linqPadContextGetter;
 }
Esempio n. 2
0
 public EfCoreUnitOfWork(
     IServiceProvider serviceProvider,
     IEfCoreTransactionStrategy transactionStrategy,
     IDbContextResolver dbContextResolver
     )
 {
     this.ServiceProvider      = serviceProvider;
     this._transactionStrategy = transactionStrategy;
     this.ActiveDbContexts     = new Dictionary <string, DbContext>();
     this._dbContextResolver   = dbContextResolver;
 }
Esempio n. 3
0
 public CustomActiveUnitOfWork(
     IIocResolver iocResolver,
     IConnectionStringResolver connectionStringResolver,
     IUnitOfWorkFilterExecuter filterExecuter,
     IDbContextResolver dbContextResolver,
     IUnitOfWorkDefaultOptions defaultOptions,
     IDbContextTypeMatcher dbContextTypeMatcher,
     IEfCoreTransactionStrategy transactionStrategy)
     : base(iocResolver,
            connectionStringResolver, filterExecuter, dbContextResolver, defaultOptions, dbContextTypeMatcher,
            transactionStrategy)
 {
 }
Esempio n. 4
0
        public EfCoreUnitOfWork(
            IServiceProvider serviceProvider,
            IEfCoreTransactionStrategy transactionStrategy,
            IDbContextResolver dbContextResolver,
            IConnectionStringResolver connectionStringResolver)
        {
            _serviceProvider          = serviceProvider;
            _transactionStrategy      = transactionStrategy;
            _dbContextResolver        = dbContextResolver;
            _connectionStringResolver = connectionStringResolver;

            _activeDbContexts = new Dictionary <string, DbContext>();
        }
        public EfCoreUnitOfWork(
            IIocResolver iocResolver,
            IEfCoreTransactionStrategy transactionStrategy,
            IDbContextResolver dbContextResolver,
            IConnectionStringResolver connectionStringResolver,
            ISessionInfo sessionInfo)
            : base(connectionStringResolver, sessionInfo)
        {
            IocResolver         = iocResolver;
            TransactionStrategy = transactionStrategy;
            DbContextResolver   = dbContextResolver;

            ActiveDbContexts = new Dictionary <string, EfCoreDbContextBase>();
        }
Esempio n. 6
0
 public DefaultEfCoreUnitOfWork(
     IIocResolver iocResolver,
     IEfCoreTransactionStrategy transactionStrategy,
     IDbContextResolver dbContextResolver,
     IConnectionStringResolver connectionStringResolver,
     ISessionInfo sessionInfo)
     : base(
         iocResolver,
         transactionStrategy,
         dbContextResolver,
         connectionStringResolver,
         sessionInfo)
 {
 }
Esempio n. 7
0
        public EfCoreUnitOfWork(
            IConnectionStringResolver connectionStringResolver,
            IUnitOfWorkDefaultOptions defaultOptions,
            IUnitOfWorkFilterExecuter filterExecuter,
            IDbContextResolver dbContextResolver,
            IEfCoreTransactionStrategy transactionStrategy,
            IDbContextTypeMatcher dbContextTypeMatcher)
            : base(connectionStringResolver, defaultOptions, filterExecuter)
        {
            _dbContextResolver    = dbContextResolver;
            _transactionStrategy  = transactionStrategy;
            _dbContextTypeMatcher = dbContextTypeMatcher;

            ActiveDbContexts = new Dictionary <string, DbContext>();
        }
Esempio n. 8
0
        /// <summary>
        /// Creates a new <see cref="EfCoreUnitOfWork"/>.
        /// </summary>
        public EfCoreUnitOfWork(
            IServiceProvider iocResolver,
            IConnectionStringResolver connectionStringResolver,
            IDbContextResolver dbContextResolver,
            IUnitOfWorkDefaultOptions defaultOptions,
            IDbContextTypeMatcher dbContextTypeMatcher,
            IEfCoreTransactionStrategy transactionStrategy)
            : base(connectionStringResolver,
                   defaultOptions)
        {
            IocResolver           = iocResolver;
            _dbContextResolver    = dbContextResolver;
            _dbContextTypeMatcher = dbContextTypeMatcher;
            _transactionStrategy  = transactionStrategy;

            ActiveDbContexts = new Dictionary <string, DbContext>();
        }
Esempio n. 9
0
        /// <summary>
        /// Creates a new <see cref="EfCoreUnitOfWork"/>.
        /// </summary>
        public EfCoreUnitOfWork(
            IIocResolver iocResolver,
            IConnectionStringResolver connectionStringResolver,
            IUnitOfWorkFilterExecuter filterExecuter,
            IDbContextResolver dbContextResolver,
            IUnitOfWorkDefaultOptions defaultOptions,
            IDbContextTypeMatcher dbContextTypeMatcher,
            IEfCoreTransactionStrategy transactionStrategy)
            : base(
                connectionStringResolver,
                defaultOptions,
                filterExecuter)
        {
            IocResolver           = iocResolver;
            _dbContextResolver    = dbContextResolver;
            _dbContextTypeMatcher = dbContextTypeMatcher;
            _transactionStrategy  = transactionStrategy;

            ActiveDbContexts = new Dictionary <string, DbContext>(StringComparer.OrdinalIgnoreCase);
        }