Table of Contents

Class SqliteColumnTypeDefinition<T>

Namespace
LfrlAnvil.Sqlite
Assembly
LfrlAnvil.Sqlite.dll

Represents a generic definition of a column type.

public abstract class SqliteColumnTypeDefinition<T> : SqlColumnTypeDefinition<T, SqliteDataReader, SqliteParameter>, ISqlColumnTypeDefinition<T>, ISqlColumnTypeDefinition where T : notnull

Type Parameters

T

Underlying .NET type.

Inheritance
SqliteColumnTypeDefinition<T>
Implements
Inherited Members

Remarks

SqliteDialect implementation.

Constructors

SqliteColumnTypeDefinition(SqliteDataType, T, Expression<Func<SqliteDataReader, int, T>>)

Creates a new SqliteColumnTypeDefinition<T> instance.

protected SqliteColumnTypeDefinition(SqliteDataType dataType, T defaultValue, Expression<Func<SqliteDataReader, int, T>> outputMapping)

Parameters

dataType SqliteDataType

Underlying DB data type.

defaultValue T

Specifies the default value for this type.

outputMapping Expression<Func<SqliteDataReader, int, T>>

Specifies the mapping of values read by SqliteDataReader to objects of the specified RuntimeType.

Properties

DataType

Underlying DB data type.

public SqliteDataType DataType { get; }

Property Value

SqliteDataType

Methods

SetParameterInfo(SqliteParameter, bool)

Updates information of the provided parameter with this type's definition.

public override void SetParameterInfo(SqliteParameter parameter, bool isNullable)

Parameters

parameter SqliteParameter

Parameter to update.

isNullable bool

Specifies whether the parameter should be marked as nullable.