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
TUnderlying .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
dataTypePostgreSqlDataTypeUnderlying DB data type.
defaultValueTSpecifies the default value for this type.
outputMappingExpression<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
parameterNpgsqlParameterParameter to update.
isNullableboolSpecifies whether or not the
parametershould be marked as nullable.