Table of Contents

Class MySqlColumnTypeEnumDefinition<TEnum, TUnderlying>

Namespace
LfrlAnvil.MySql.Internal.TypeDefinitions
Assembly
LfrlAnvil.MySql.dll

Represents a generic definition of an Enum column type for MySqlDialect.

public sealed class MySqlColumnTypeEnumDefinition<TEnum, TUnderlying> : SqlColumnTypeEnumDefinition<TEnum, TUnderlying, MySqlDataReader, MySqlParameter>, 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, MySqlDataReader, MySqlParameter>
SqlColumnTypeEnumDefinition<TEnum, TUnderlying, MySqlDataReader, MySqlParameter>
MySqlColumnTypeEnumDefinition<TEnum, TUnderlying>
Implements
Inherited Members

Constructors

MySqlColumnTypeEnumDefinition(MySqlColumnTypeDefinition<TUnderlying>)

public MySqlColumnTypeEnumDefinition(MySqlColumnTypeDefinition<TUnderlying> @base)

Parameters

base MySqlColumnTypeDefinition<TUnderlying>

Column type definition associated with the underlying type.

Properties

DataType

Underlying DB data type.

public MySqlDataType DataType { get; }

Property Value

MySqlDataType

Methods

SetParameterInfo(MySqlParameter, bool)

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

public override void SetParameterInfo(MySqlParameter parameter, bool isNullable)

Parameters

parameter MySqlParameter

Parameter to update.

isNullable bool

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