Table of Contents

Class PostgreSqlColumnTypeDefinition<T>

Namespace
LfrlAnvil.PostgreSql
Assembly
LfrlAnvil.PostgreSql.dll

Represents a generic definition of a column type.

public abstract class PostgreSqlColumnTypeDefinition<T> : SqlColumnTypeDefinition<T, NpgsqlDataReader, NpgsqlParameter>, ISqlColumnTypeDefinition<T>, ISqlColumnTypeDefinition where T : notnull

Type Parameters

T

Underlying .NET type.

Inheritance
SqlColumnTypeDefinition<T, NpgsqlDataReader, NpgsqlParameter>
PostgreSqlColumnTypeDefinition<T>
Implements
Inherited Members

Remarks

PostgreSqlDialect implementation.

Constructors

PostgreSqlColumnTypeDefinition(PostgreSqlDataType, T, Expression<Func<NpgsqlDataReader, int, T>>)

Creates a new PostgreSqlColumnTypeDefinition<T> instance.

protected PostgreSqlColumnTypeDefinition(PostgreSqlDataType dataType, T defaultValue, Expression<Func<NpgsqlDataReader, int, T>> outputMapping)

Parameters

dataType PostgreSqlDataType

Underlying DB data type.

defaultValue T

Specifies the default value for this type.

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

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

Properties

DataType

Underlying DB data type.

public PostgreSqlDataType DataType { get; }

Property Value

PostgreSqlDataType

Methods

SetParameterInfo(NpgsqlParameter, bool)

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

public override void SetParameterInfo(NpgsqlParameter parameter, bool isNullable)

Parameters

parameter NpgsqlParameter

Parameter to update.

isNullable bool

Specifies whether or not the parameter should be marked as nullable.