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; }
public EfCoreUnitOfWork( IServiceProvider serviceProvider, IEfCoreTransactionStrategy transactionStrategy, IDbContextResolver dbContextResolver ) { this.ServiceProvider = serviceProvider; this._transactionStrategy = transactionStrategy; this.ActiveDbContexts = new Dictionary <string, DbContext>(); this._dbContextResolver = dbContextResolver; }
public CustomActiveUnitOfWork( IIocResolver iocResolver, IConnectionStringResolver connectionStringResolver, IUnitOfWorkFilterExecuter filterExecuter, IDbContextResolver dbContextResolver, IUnitOfWorkDefaultOptions defaultOptions, IDbContextTypeMatcher dbContextTypeMatcher, IEfCoreTransactionStrategy transactionStrategy) : base(iocResolver, connectionStringResolver, filterExecuter, dbContextResolver, defaultOptions, dbContextTypeMatcher, transactionStrategy) { }
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>(); }
public DefaultEfCoreUnitOfWork( IIocResolver iocResolver, IEfCoreTransactionStrategy transactionStrategy, IDbContextResolver dbContextResolver, IConnectionStringResolver connectionStringResolver, ISessionInfo sessionInfo) : base( iocResolver, transactionStrategy, dbContextResolver, connectionStringResolver, sessionInfo) { }
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>(); }
/// <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>(); }
/// <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); }