Table of Contents

Class BaseTypeInfo

Namespace
Rinku.Mapping
Assembly
Rinku.dll

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

BaseTypeInfo

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

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

ValidateCanUseType(Type)

Throws when this mapping cannot be registered for TargetType.

public override void ValidateCanUseType(Type TargetType)

Parameters

TargetType Type