Class CtorTypeInfo
Maps constructor parameters by column order and type instead of by name.
public class CtorTypeInfo : TypeParsingInfo
- Inheritance
-
CtorTypeInfo
- Inherited Members
- Extension Methods
Fields
Instance
Singleton
public static readonly CtorTypeInfo Instance
Field Value
Methods
TryGetParser(Type, RecursiveInfo, ParamInfo, ColumnInfo[], ColModifier, ref ColumnUsage, AdditionalFlags)
Tries to create a read plan for the requested type and result columns.
public override 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.
Returns
ValidateCanUseType(Type)
Throws when this mapping cannot be registered for TargetType.
public override void ValidateCanUseType(Type targetType)
Parameters
targetTypeType