Class ScalarTypeParsingInfo
A base registration for values read from one result column. Derive from this type to add a scalar mapping while keeping the standard name, order, reuse, and fallback rules.
public abstract class ScalarTypeParsingInfo : TypeParsingInfo
- Inheritance
-
ScalarTypeParsingInfo
- Derived
- Inherited Members
- Extension Methods
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 abstract 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
TryGetParser(Type, RecursiveInfo, ParamInfo, ColumnInfo[], ColModifier, ref ColumnUsage, AdditionalFlags)
Tries to create a read plan for the requested type and result columns.
public override sealed DbItemPlan? TryGetParser(Type currentClosedType, RecursiveInfo previousUsages, ParamInfo paramInfo, ColumnInfo[] columns, ColModifier colModifier, ref ColumnUsage colUsage, MethodCtorInfo.AdditionalFlags callerFlags = (MethodCtorInfo.AdditionalFlags)0)
Parameters
currentClosedTypeTypeThe closed type being parsed.
previousUsagesRecursiveInfoThe parent types already used by this path.
paramInfoParamInfoThe slot rules for the value being parsed.
columnsColumnInfo[]The result columns available to the parser.
colModifierColModifierThe current column matching settings.
colUsageColumnUsageThe columns already consumed by the current path.
callerFlagsMethodCtorInfo.AdditionalFlagsFlags from the construction path that requested this child.