Class PostgreSqlColumnTypeEnumDefinition<TEnum, TUnderlying>
- Namespace
- LfrlAnvil.PostgreSql.Internal.TypeDefinitions
- Assembly
- LfrlAnvil.PostgreSql.dll
Represents a generic definition of an Enum column type for PostgreSqlDialect.
public sealed class PostgreSqlColumnTypeEnumDefinition<TEnum, TUnderlying> : SqlColumnTypeEnumDefinition<TEnum, TUnderlying, NpgsqlDataReader, NpgsqlParameter>, ISqlColumnTypeDefinition<TEnum>, ISqlColumnTypeDefinition where TEnum : struct, Enum where TUnderlying : unmanaged
Type Parameters
TEnumUnderlying .NET Enum type.
TUnderlying.NET type of the underlying value of
TEnumtype.
- Inheritance
-
SqlColumnTypeDefinition<TEnum>PostgreSqlColumnTypeEnumDefinition<TEnum, TUnderlying>
- Implements
-
ISqlColumnTypeDefinition<TEnum>
- Inherited Members
Constructors
PostgreSqlColumnTypeEnumDefinition(PostgreSqlColumnTypeDefinition<TUnderlying>)
Creates a new PostgreSqlColumnTypeEnumDefinition<TEnum, TUnderlying> instance.
public PostgreSqlColumnTypeEnumDefinition(PostgreSqlColumnTypeDefinition<TUnderlying> @base)
Parameters
basePostgreSqlColumnTypeDefinition<TUnderlying>Column type definition associated with the underlying type.
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.