Class BaseTypeInfo
Maps a scalar to the first unused compatible column and applies the standard conversions.
public class BaseTypeInfo : ScalarTypeParsingInfo
- Inheritance
-
BaseTypeInfo
- Inherited Members
- Extension Methods
Fields
Instance
Singleton
public static readonly BaseTypeInfo Instance
Field Value
Methods
TryCreatePlan(Type, Type, ParamInfo, ColumnInfo, int)
Tries to create the plan for one name-compatible candidate column. Returning null lets matching continue with the next column.
protected override DbItemPlan? TryCreatePlan(Type targetType, Type parentType, ParamInfo parameter, ColumnInfo column, int ordinal)
Parameters
targetTypeTypeThe closed target type requested by the containing mapping.
parentTypeTypeThe type containing the value being read.
parameterParamInfoThe target member or constructor-parameter rules.
columnColumnInfoThe candidate schema column.
ordinalintThe candidate's zero-based ordinal.
Returns
ValidateCanUseType(Type)
Throws when this mapping cannot be registered for TargetType.
public override void ValidateCanUseType(Type TargetType)
Parameters
TargetTypeType