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
dialectSqlDialectSpecifies 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
definitionSqlColumnTypeDefinitionDefinition 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
typeTypeType 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
definitionSqlColumnTypeDefinitionDefinition to register.
Returns
Exceptions
- ArgumentException
When definition's dialect is not the same as this builder's dialect.