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 : notnullType 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
- dataTypeMySqlDataType
- Underlying DB data type. 
- defaultValueT
- Specifies 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
- parameterMySqlParameter
- Parameter to update. 
- isNullablebool
- Specifies whether or not the - parametershould be marked as nullable.