Class MySqlColumnTypeDefinition<T>
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
TUnderlying .NET type.
- Inheritance
-
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
dataTypeMySqlDataTypeUnderlying DB data type.
defaultValueTSpecifies the default value for this type.
outputMappingExpression<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
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.