Table of Contents

Class DefaultEmitter

Namespace
Rinku.Mapping
Assembly
Rinku.dll

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

targetType Type

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

cols ColumnInfo[]

The columns the result carries.

generator Generator

The instruction writer to use.

nullSetPoint NullSetPoint

Where to jump when a value is NULL and 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

previousIndex int

Returns

bool

NeedNullSetPoint(ColumnInfo[])

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

public override bool NeedNullSetPoint(ColumnInfo[] cols)

Parameters

cols ColumnInfo[]

Returns

bool