Exemple #1
0
        protected string _schemaConnectionKey = "Ids4DbConnection";// Ids4DbConnection | ConfigurationDbConnection | OperationalStoreDbConnection

        protected DbContextFactoryBase(IConfigurationRoot config)
        {
            _config = config;

            if (_config == null)
            {
                _config = AppSettingsMockingBuilder.BuildConfiguration("Development");
            }

            _connectionName = DbConnectionSwitcher.SwitchConnectionKey(_config, _schemaConnectionKey);
        }
Exemple #2
0
 public PersistanceGrantDbContextFactory() : base(AppSettingsMockingBuilder.BuildConfiguration("Development"))
 {
     _schemaConnectionKey = "OperationalStoreDbConnection";
 }
Exemple #3
0
 public ConfigurationDbContextFactory() : base(AppSettingsMockingBuilder.BuildConfiguration("Development"))
 {
     _schemaConnectionKey = "ConfigurationDbConnection";
 }