Table of Contents

Class ScalarTypeParsingInfo

Namespace
Rinku.Mapping
Assembly
Rinku.dll

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

targetType Type

The closed target type requested by the containing mapping.

parentType Type

The type containing the value being read.

parameter ParamInfo

The target member or constructor-parameter rules.

column ColumnInfo

The candidate schema column.

ordinal int

The candidate's zero-based ordinal.

Returns

DbItemPlan

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

currentClosedType Type

The closed type being parsed.

previousUsages RecursiveInfo

The parent types already used by this path.

paramInfo ParamInfo

The slot rules for the value being parsed.

columns ColumnInfo[]

The result columns available to the parser.

colModifier ColModifier

The current column matching settings.

colUsage ColumnUsage

The columns already consumed by the current path.

callerFlags MethodCtorInfo.AdditionalFlags

Flags from the construction path that requested this child.

Returns

DbItemPlan