Interface ISqlColumnTypeDefinitionProvider
Represents a collection of column type definitions.
public interface ISqlColumnTypeDefinitionProvider
- Extension Methods
Properties
Dialect
Specifies the SQL dialect of this provider.
SqlDialect Dialect { get; }
Property Value
Methods
Contains(ISqlColumnTypeDefinition)
Checks whether or not the specified definition
belongs to this provider.
[Pure]
bool Contains(ISqlColumnTypeDefinition definition)
Parameters
definition
ISqlColumnTypeDefinitionDefinition to check.
Returns
- bool
true when
definition
belongs to this provider, otherwise false.
GetByDataType(ISqlDataType)
Returns a default column type definition associated with the provided dataType
.
[Pure]
ISqlColumnTypeDefinition GetByDataType(ISqlDataType dataType)
Parameters
dataType
ISqlDataTypeData type to get default type definition for.
Returns
- ISqlColumnTypeDefinition
Default column type definition associated with the provided
dataType
.
GetByType(Type)
Returns a column type definition associated with the provided type
.
[Pure]
ISqlColumnTypeDefinition GetByType(Type type)
Parameters
type
TypeRuntime type to get type definition for.
Returns
- ISqlColumnTypeDefinition
Column type definition associated with the provided
type
.
Exceptions
- KeyNotFoundException
When column type definition for the provided
type
does not exist.
GetDataTypeDefinitions()
Returns a collection of all default column type definitions identifiable by ISqlDataType instances.
[Pure]
IReadOnlyCollection<ISqlColumnTypeDefinition> GetDataTypeDefinitions()
Returns
- IReadOnlyCollection<ISqlColumnTypeDefinition>
Collection of all default column type definitions identifiable by ISqlDataType instances.
GetTypeDefinitions()
Returns a collection of all column type definitions identifiable by Type instances.
[Pure]
IReadOnlyCollection<ISqlColumnTypeDefinition> GetTypeDefinitions()
Returns
- IReadOnlyCollection<ISqlColumnTypeDefinition>
Collection of all column type definitions identifiable by Type instances.
TryGetByType(Type)
Attempts to return a column type definition associated with the provided type
.
[Pure]
ISqlColumnTypeDefinition? TryGetByType(Type type)
Parameters
type
TypeRuntime type to get type definition for.
Returns
- ISqlColumnTypeDefinition
Column type definition associated with the provided
type
or null when column type definition for the providedtype
does not exist.