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
TEnumUnderlying .NET Enum type.
TUnderlying.NET type of the underlying value of
TEnumtype.
- 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
baseMySqlColumnTypeDefinition<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
parameterMySqlParameterParameter to update.
isNullableboolSpecifies whether or not the
parametershould be marked as nullable.