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; }
/// <summary> /// Creates a new instance of <see cref="NhUnitOfWork" />. /// </summary> public NhUnitOfWork(IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter, ISessionFactoryProvider sessionFactoryProvider) : base(defaultOptions, filterExecuter) { _sessionFactoryProvider = sessionFactoryProvider; ActiveSessions = new Dictionary <string, ISession>(); ActiveTransactions = new Dictionary <string, ActiveTransactionInfo>(); }
public CouchbaseUnitOfWork( IConnectionStringResolver connectionStringResolver, IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter, ICluster cluster) : base(connectionStringResolver, defaultOptions, filterExecuter) { _cluster = cluster; }
public NullUnitOfWork( IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter ) : base( defaultOptions, filterExecuter) { }
public RavenDBUnitOfWork( IConnectionStringResolver connectionStringResolver, IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter, IDocumentStore documentStore) : base(connectionStringResolver, defaultOptions, filterExecuter) { _documentStore = documentStore; }
/// <summary> /// Constructor. /// </summary> protected UnitOfWorkBase(IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter) { FilterExecuter = filterExecuter; DefaultOptions = defaultOptions; Id = Guid.NewGuid().ToString("N"); _filters = defaultOptions.Filters.ToList(); AppSession = NullSession.Instance; }
protected UnitOfWorkBase(IConnectionStringResolver connectionStringResolver, IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter) { FilterExecuter = filterExecuter; DefaultOptions = defaultOptions; ConnectionStringResolver = connectionStringResolver; Id = Guid.NewGuid().ToString("N"); _filters = defaultOptions.Filters.ToList(); Items = new Dictionary <string, object>(); }
public UnitOfWork( IConnectionStringResolver connectionStringResolver, IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter, ILocalDbSessionConfiguration localDbSessionConfiguration) : base(connectionStringResolver, defaultOptions, filterExecuter) { DbSessionConfiguration = localDbSessionConfiguration; }
/// <summary> /// Creates a new instance of <see cref="SheshaNhUnitOfWork"/>. /// </summary> public SheshaNhUnitOfWork( ISessionFactory sessionFactory, IConnectionStringResolver connectionStringResolver, IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter, SheshaNHibernateModule nhModule) : base(sessionFactory, connectionStringResolver, defaultOptions, filterExecuter, nhModule) { }
public NullUnitOfWork( IConnectionStringResolver connectionStringResolver, IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter ) : base( connectionStringResolver, defaultOptions, filterExecuter) { }
/// <summary> /// Constructor. /// </summary> protected UnitOfWorkBase(IConnectionStringResolver connectionStringResolver, IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter) { FilterExecuter = filterExecuter; DefaultOptions = defaultOptions; ConnectionStringResolver = connectionStringResolver; Id = Guid.NewGuid().ToString("N"); _filters = defaultOptions.Filters.ToList(); Session = NullInfrastructureSession.Instance; }
public FreeSqlUnitOfWork( IAbpFreesqlModuleConfiguration configuration, IConnectionStringResolver connectionStringResolver, IUnitOfWorkFilterExecuter filterExecuter, IUnitOfWorkDefaultOptions defaultOptions) : base(connectionStringResolver, defaultOptions, filterExecuter) { _configuration = configuration; }
/// <summary> /// Constructor. /// </summary> public MongoDbUnitOfWork( IAbpMongoDbModuleConfiguration configuration, IConnectionStringResolver connectionStringResolver, IUnitOfWorkFilterExecuter filterExecuter, IUnitOfWorkDefaultOptions defaultOptions) : base( connectionStringResolver, defaultOptions, filterExecuter) { _configuration = configuration; }
/// <summary> /// Constructor. /// </summary> public MongoDbUnitOfWork( IStudioXMongoDbModuleConfiguration configuration, IConnectionStringResolver connectionStringResolver, IUnitOfWorkFilterExecuter filterExecuter, IUnitOfWorkDefaultOptions defaultOptions) : base( connectionStringResolver, defaultOptions, filterExecuter) { this.configuration = configuration; }
/// <summary> /// Creates a new instance of <see cref="NhUnitOfWork"/>. /// </summary> public NhUnitOfWork( ISessionFactory sessionFactory, IConnectionStringResolver connectionStringResolver, IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter) : base( connectionStringResolver, defaultOptions, filterExecuter) { _sessionFactory = sessionFactory; }
public CustomActiveUnitOfWork( IIocResolver iocResolver, IConnectionStringResolver connectionStringResolver, IUnitOfWorkFilterExecuter filterExecuter, IDbContextResolver dbContextResolver, IUnitOfWorkDefaultOptions defaultOptions, IDbContextTypeMatcher dbContextTypeMatcher, IEfCoreTransactionStrategy transactionStrategy) : base(iocResolver, connectionStringResolver, filterExecuter, dbContextResolver, defaultOptions, dbContextTypeMatcher, transactionStrategy) { }
/// <summary> /// Constructor. /// </summary> public MemoryDbUnitOfWork( IAbpMemoryDbModuleConfiguration configuration, MemoryDatabase memoryDatabase, IConnectionStringResolver connectionStringResolver, IUnitOfWorkFilterExecuter filterExecuter, IUnitOfWorkDefaultOptions defaultOptions) : base( connectionStringResolver, defaultOptions, filterExecuter) { _configuration = configuration; _memoryDatabase = memoryDatabase; }
/// <summary> /// Constructor. /// </summary> public MongoDbUnitOfWork( IAbpMongoDbModuleConfiguration configuration, IConnectionStringResolver connectionStringResolver, IUnitOfWorkFilterExecuter filterExecuter, IUnitOfWorkDefaultOptions defaultOptions) : base( connectionStringResolver, defaultOptions, filterExecuter) { _configuration = configuration; Database = new MongoClient(_configuration.ConnectionString) .GetDatabase(_configuration.DatabaseName); }
/// <summary> /// Constructor. /// </summary> public MemoryDbUnitOfWork( IStudioXMemoryDbModuleConfiguration configuration, MemoryDatabase memoryDatabase, IConnectionStringResolver connectionStringResolver, IUnitOfWorkFilterExecuter filterExecuter, IUnitOfWorkDefaultOptions defaultOptions) : base( connectionStringResolver, defaultOptions, filterExecuter) { this.configuration = configuration; this.memoryDatabase = memoryDatabase; }
/// <summary> /// Constructor. /// </summary> protected UnitOfWorkBase( //IConnectionStringResolver connectionStringResolver, IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter) { FilterExecuter = filterExecuter; DefaultOptions = defaultOptions; //ConnectionStringResolver = connectionStringResolver; Id = Guid.NewGuid().ToString("N"); //_filters = defaultOptions.Filters.ToList(); //Session = NullAbpSession.Instance; }
/// <summary> /// Constructor. /// </summary> protected UnitOfWorkBase( IConnectionStringResolver connectionStringResolver, IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter) { FilterExecuter = filterExecuter; DefaultOptions = defaultOptions; ConnectionStringResolver = connectionStringResolver; Id = Guid.NewGuid().ToString("N"); _filters = defaultOptions.Filters.ToList(); _auditFieldConfiguration = defaultOptions.AuditFieldConfiguration.ToList(); AbpSession = NullAbpSession.Instance; Items = new Dictionary <string, object>(); }
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( IIocResolver iocResolver, IConnectionStringResolver connectionStringResolver, IUnitOfWorkFilterExecuter filterExecuter, IDbContextResolver dbContextResolver, IUnitOfWorkDefaultOptions defaultOptions, IDbContextTypeMatcher dbContextTypeMatcher) : base( connectionStringResolver, defaultOptions, filterExecuter) { IocResolver = iocResolver; _dbContextResolver = dbContextResolver; _dbContextTypeMatcher = dbContextTypeMatcher; 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); }
/// <summary> /// Constructor. /// </summary> protected UnitOfWorkBase( IConnectionStringResolver connectionStringResolver, IUnitOfWorkDefaultOptions defaultOptions, IUnitOfWorkFilterExecuter filterExecuter) { FilterExecuter = filterExecuter; DefaultOptions = defaultOptions; ConnectionStringResolver = connectionStringResolver; Id = Guid.NewGuid().ToString("N"); _filters = defaultOptions.Filters.ToList(); AbpSession = NullAbpSession.Instance; }