Пример #1
0
        protected DbContextBase(IConfiguration configuration, TenancyConfiguration tenancyConfiguration,
                                IGuidGenerator generator, params IConfigurationModule[] modules)
            : base(configuration.DatabaseConnection)
        {
            DbConfiguration.SetConfiguration(tenancyConfiguration);

            _generator = generator;
            _modules   = modules;
        }
Пример #2
0
 public DatabaseContext(IConfiguration configuration, TenancyConfiguration tenancyConfiguration, IGuidGenerator generator)
     : base(configuration, tenancyConfiguration, generator, new ContextConfigurationModule())
 {
     this.DisableDatabaseInitialization();
 }