public SqlServerCoreBlockchainDbContextFactory(string connectionString, DbSchemaNames dbSchemaName) { _connectionString = connectionString; if (!SchemaToDbContextTypes.ContainsKey(dbSchemaName)) { throw new Exception($"Unsupported or unknown schema '{dbSchemaName}'. Could not locate a BlockchainDbContext type based on the schema"); } _typeOfContext = SchemaToDbContextTypes[dbSchemaName]; }
public DbSchemaAttribute(DbSchemaNames dbSchemaName) { DbSchemaName = dbSchemaName; }