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
T
Underlying .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
dataType
MySqlDataTypeUnderlying DB data type.
defaultValue
TSpecifies 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
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.