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
TEnum
Underlying .NET Enum type.
TUnderlying
.NET type of the underlying value of
TEnum
type.
- 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
base
PostgreSqlColumnTypeDefinition<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
parameter
NpgsqlParameterParameter to update.
isNullable
boolSpecifies whether or not the
parameter
should be marked as nullable.