Class SqlColumnTypeDefinitionProviderBuilder
Represents a builder of ISqlColumnTypeDefinitionProvider instances.
public abstract class SqlColumnTypeDefinitionProviderBuilder : ISqlColumnTypeDefinitionProviderBuilder
- Inheritance
-
SqlColumnTypeDefinitionProviderBuilder
- Implements
- Derived
- Inherited Members
Constructors
SqlColumnTypeDefinitionProviderBuilder(SqlDialect)
Creates a new empty SqlColumnTypeDefinitionProviderBuilder instance.
protected SqlColumnTypeDefinitionProviderBuilder(SqlDialect dialect)
Parameters
dialect
SqlDialectSpecifies the SQL dialect of this builder.
Properties
Dialect
Specifies the SQL dialect of this builder.
public SqlDialect Dialect { get; }
Property Value
Methods
AddOrUpdate(SqlColumnTypeDefinition)
Adds or updates the provided column type definition
by its RuntimeType to this builder.
protected void AddOrUpdate(SqlColumnTypeDefinition definition)
Parameters
definition
SqlColumnTypeDefinitionDefinition to register.
Build()
Creates a new ISqlColumnTypeDefinitionProvider instance.
[Pure]
public abstract SqlColumnTypeDefinitionProvider Build()
Returns
Contains(Type)
Checks whether or not a column type definition for the provided type
has been registered.
[Pure]
public bool Contains(Type type)
Parameters
type
TypeType to check.
Returns
- bool
true when column type definition exists, otherwise false.
Register(SqlColumnTypeDefinition)
Adds or updates the provided column type definition
by its RuntimeType to this builder.
public SqlColumnTypeDefinitionProviderBuilder Register(SqlColumnTypeDefinition definition)
Parameters
definition
SqlColumnTypeDefinitionDefinition to register.
Returns
Exceptions
- ArgumentException
When definition's dialect is not the same as this builder's dialect.