public TenantAwareDbContextAccessor( IServiceProvider serviceProvider, IDbContextOptionsProvider dbContextOptionsProvider) { _serviceProvider = serviceProvider; _dbContextOptionsProvider = dbContextOptionsProvider; }
public TenantAwareDbContext( string tenantId, IDbContextOptionsProvider dbContextOptionsProvider) { _tenantId = tenantId; _dbContextOptionsProvider = dbContextOptionsProvider; }
public TenantAwareConfigurationDbContextAccessor( IServiceProvider serviceProvider, ConfigurationStoreOptions storeOptions, OperationalStoreOptions operationalStoreOptions, IDbContextOptionsProvider dbContextOptionsProvider) { _serviceProvider = serviceProvider; _storeOptions = storeOptions; _operationalStoreOptions = operationalStoreOptions; _dbContextOptionsProvider = dbContextOptionsProvider; }
public TenantAwareConfigurationDbContext( string tenantId, ConfigurationStoreOptions storeOptions, OperationalStoreOptions operationalStoreOptions, IDbContextOptionsProvider dbContextOptionsProvider) { this._storeOptions = storeOptions ?? throw new ArgumentNullException(nameof(storeOptions)); this._operationalStoreOptions = operationalStoreOptions ?? throw new ArgumentNullException(nameof(operationalStoreOptions)); _tenantId = tenantId ?? throw new ArgumentNullException(nameof(tenantId)); _dbContextOptionsProvider = dbContextOptionsProvider ?? throw new ArgumentNullException(nameof(dbContextOptionsProvider)); }
public ContextScopeFactory(IDbContextOptionsProvider dbContextOptionsProvider) { _dbContextOptionsProvider = dbContextOptionsProvider; }
public ContextScope(IDbContextOptionsProvider dbContextOptionsProvider) { _dbContextOptionsProvider = dbContextOptionsProvider; _contextsDictionary = new Dictionary <string, DbContext>(); }