Class DefaultEmitter
Produces the type's default value, the parser used for a member that has no matching column.
public class DefaultEmitter : SimpleDbItemParser, ISimpleDbItemPlan
- Inheritance
-
DefaultEmitter
- Implements
- Inherited Members
- Extension Methods
Constructors
DefaultEmitter(Type)
Produces the type's default value, the parser used for a member that has no matching column.
public DefaultEmitter(Type targetType)
Parameters
targetTypeType
Methods
Emit(ColumnInfo[], Generator, NullSetPoint)
Writes the instructions that read this value from the current row.
public override void Emit(ColumnInfo[] cols, Generator generator, NullSetPoint nullSetPoint)
Parameters
colsColumnInfo[]The columns the result carries.
generatorGeneratorThe instruction writer to use.
nullSetPointNullSetPointWhere to jump when a value is
NULLand the object must collapse.
IsSequencial(ref int)
Returns whether this plan reads columns in increasing order. Update previousIndex
with the final column used.
public override 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 override bool NeedNullSetPoint(ColumnInfo[] cols)
Parameters
colsColumnInfo[]