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
-
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
PostgreSqlDataTypeUnderlying DB data type.
defaultValue
TSpecifies 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
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
NpgsqlParameterParameter to update.
isNullable
boolSpecifies whether or not the
parameter
should be marked as nullable.