Class SqlDatabaseFactoryProvider
Represents a collection of ISqlDatabaseFactory instances identifiable by their Dialect.
public sealed class SqlDatabaseFactoryProvider
- Inheritance
-
SqlDatabaseFactoryProvider
- Inherited Members
Constructors
SqlDatabaseFactoryProvider()
Creates a new empty SqlDatabaseFactoryProvider instance.
public SqlDatabaseFactoryProvider()
Properties
SupportedDialects
Collection of registered SQL dialects.
public IReadOnlyCollection<SqlDialect> SupportedDialects { get; }
Property Value
Methods
GetFor(SqlDialect)
Returns an ISqlDatabaseFactory instance associated with the provided dialect.
[Pure]
public ISqlDatabaseFactory GetFor(SqlDialect dialect)
Parameters
dialectSqlDialectSQL dialect.
Returns
- ISqlDatabaseFactory
ISqlDatabaseFactory instance associated with the provided
dialect.
Exceptions
- KeyNotFoundException
When
dialectwas not registered.
RegisterFactory(ISqlDatabaseFactory)
Registers the provided factory.
public SqlDatabaseFactoryProvider RegisterFactory(ISqlDatabaseFactory factory)
Parameters
factoryISqlDatabaseFactoryFactory to register.