Table of Contents

Class MySqlColumnTypeDefinition<T>

Namespace
LfrlAnvil.MySql
Assembly
LfrlAnvil.MySql.dll

Represents a generic definition of a column type.

public abstract class MySqlColumnTypeDefinition<T> : SqlColumnTypeDefinition<T, MySqlDataReader, MySqlParameter>, ISqlColumnTypeDefinition<T>, ISqlColumnTypeDefinition where T : notnull

Type Parameters

T

Underlying .NET type.

Inheritance
SqlColumnTypeDefinition<T, MySqlDataReader, MySqlParameter>
MySqlColumnTypeDefinition<T>
Implements
Inherited Members

Remarks

MySqlDialect implementation.

Constructors

MySqlColumnTypeDefinition(MySqlDataType, T, Expression<Func<MySqlDataReader, int, T>>)

Creates a new MySqlColumnTypeDefinition<T> instance.

protected MySqlColumnTypeDefinition(MySqlDataType dataType, T defaultValue, Expression<Func<MySqlDataReader, int, T>> outputMapping)

Parameters

dataType MySqlDataType

Underlying DB data type.

defaultValue T

Specifies the default value for this type.

outputMapping Expression<Func<MySqlDataReader, int, T>>

Specifies the mapping of values read by MySqlConnector.MySqlDataReader to objects of the specified RuntimeType.

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.