Table of Contents

Class DbItemPlan

Namespace
Rinku.Mapping
Assembly
Rinku.dll

Describes how part of a result is read. Return a plan from TryGetParser(Type, RecursiveInfo, ParamInfo, ColumnInfo[], ColModifier, ref ColumnUsage, AdditionalFlags) when adding custom type mapping.

public abstract class DbItemPlan
Inheritance
DbItemPlan
Derived
Inherited Members
Extension Methods

Properties

Children

Gets the child plans. Return an empty sequence for a plan with no children.

public virtual IEnumerable<DbItemPlan> Children { get; }

Property Value

IEnumerable<DbItemPlan>

Methods

EmitDefaultValue(Type, Generator)

Writes the default value of type onto the evaluation stack.

public static void EmitDefaultValue(Type type, Generator generator)

Parameters

type Type
generator Generator

EmitMemberDispatch(Generator, MemberInfo)

Writes the call, construction, or assignment for the supplied member.

public static void EmitMemberDispatch(Generator generator, MemberInfo member)

Parameters

generator Generator
member MemberInfo

EmitNullJump(Label, Type, Generator)

Completes a null branch and leaves the default value on the evaluation stack when that branch is used.

public static void EmitNullJump(Label nullJump, Type type, Generator generator)

Parameters

nullJump Label
type Type
generator Generator

EmitThrowNullAssignment(Type, Type, string, Generator)

Writes a throw for NullValueAssignmentException. Use it when a target rejects database NULL.

public static void EmitThrowNullAssignment(Type parentType, Type paramType, string paramName, Generator generator)

Parameters

parentType Type
paramType Type
paramName string
generator Generator

IsSequencial(ref int)

Returns whether this plan reads columns in increasing order. Update previousIndex with the final column used.

public abstract bool IsSequencial(ref int previousIndex)

Parameters

previousIndex int

Returns

bool

NeedNullSetPoint(ColumnInfo[])

Returns whether this plan can collapse its owning object when it reads a NULL.

public abstract bool NeedNullSetPoint(ColumnInfo[] cols)

Parameters

cols ColumnInfo[]

Returns

bool