Table of Contents

Interface ISqlColumnTypeDefinitionProviderBuilder

Namespace
LfrlAnvil.Sql
Assembly
LfrlAnvil.Sql.Core.dll

Represents a builder of ISqlColumnTypeDefinitionProvider instances.

public interface ISqlColumnTypeDefinitionProviderBuilder

Properties

Dialect

Specifies the SQL dialect of this builder.

SqlDialect Dialect { get; }

Property Value

SqlDialect

Methods

Build()

Creates a new ISqlColumnTypeDefinitionProvider instance.

[Pure]
ISqlColumnTypeDefinitionProvider Build()

Returns

ISqlColumnTypeDefinitionProvider

New ISqlColumnTypeDefinitionProvider instance.

Contains(Type)

Checks whether or not a column type definition for the provided type has been registered.

[Pure]
bool Contains(Type type)

Parameters

type Type

Type to check.

Returns

bool

true when column type definition exists, otherwise false.

Register(ISqlColumnTypeDefinition)

Adds or updates the provided column type definition by its RuntimeType to this builder.

ISqlColumnTypeDefinitionProviderBuilder Register(ISqlColumnTypeDefinition definition)

Parameters

definition ISqlColumnTypeDefinition

Definition to register.

Returns

ISqlColumnTypeDefinitionProviderBuilder

this.

Exceptions

ArgumentException

When definition's dialect is not the same as this builder's dialect.