Table of Contents

Class CtorTypeInfo

Namespace
Rinku.Mapping
Assembly
Rinku.dll

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

CtorTypeInfo

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

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

ValidateCanUseType(Type)

Throws when this mapping cannot be registered for TargetType.

public override void ValidateCanUseType(Type targetType)

Parameters

targetType Type