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>MySqlColumnTypeEnumDefinition<TEnum, TUnderlying>
- Implements
-
ISqlColumnTypeDefinition<TEnum>
- Inherited Members
Constructors
MySqlColumnTypeEnumDefinition(MySqlColumnTypeDefinition<TUnderlying>)
Creates a new MySqlColumnTypeEnumDefinition<TEnum, TUnderlying> instance.
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
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
MySqlParameterParameter to update.
isNullable
boolSpecifies whether or not the
parameter
should be marked as nullable.