Class DbItemPlan
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
Methods
EmitDefaultValue(Type, Generator)
Writes the default value of type onto the evaluation stack.
public static void EmitDefaultValue(Type type, Generator generator)
Parameters
EmitMemberDispatch(Generator, MemberInfo)
Writes the call, construction, or assignment for the supplied member.
public static void EmitMemberDispatch(Generator generator, MemberInfo member)
Parameters
generatorGeneratormemberMemberInfo
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
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
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
previousIndexint
Returns
NeedNullSetPoint(ColumnInfo[])
Returns whether this plan can collapse its owning object when it reads a NULL.
public abstract bool NeedNullSetPoint(ColumnInfo[] cols)
Parameters
colsColumnInfo[]