Table of Contents

Class NotNullHandle

Namespace
Rinku.Mapping
Assembly
Rinku.dll

The null rule that throws when a column is NULL, the default for a non-nullable value.

public class NotNullHandle : INullColHandler
Inheritance
NotNullHandle
Implements
Inherited Members
Extension Methods

Fields

Instance

Singleton

public static readonly NotNullHandle Instance

Field Value

NotNullHandle

Methods

HandleNull(Type, Type, string, Generator, NullSetPoint)

Emits how a NULL is handled for this value.

public Label? HandleNull(Type parentType, Type closedType, string paramName, Generator generator, NullSetPoint nullSetPoint)

Parameters

parentType Type
closedType Type
paramName string
generator Generator
nullSetPoint NullSetPoint

Returns

Label?

A label to continue at after handling, or null when the handler jumps or throws outright.

HandleNullForMultiRow(Type, Type, string, LocalBuilder, Generator, NullSetPoint)

Emits how a NULL element signal is handled in a multi-row collection, storing the result in the element local.

public Label? HandleNullForMultiRow(Type bufferType, Type elementType, string paramName, LocalBuilder elementLocal, Generator generator, NullSetPoint nullSetPoint)

Parameters

bufferType Type
elementType Type
paramName string
elementLocal LocalBuilder
generator Generator
nullSetPoint NullSetPoint

Returns

Label?

A label to continue at after handling, or null when the handler jumps or throws outright.

IsBr_S(Type)

Whether the branch this handler emits is short-form, an emit detail.

public bool IsBr_S(Type closedType)

Parameters

closedType Type

Returns

bool

NeedNullJumpSetPoint(Type)

Returns whether the generated reader needs a target for this null rule.

public bool NeedNullJumpSetPoint(Type closedType)

Parameters

closedType Type

Returns

bool

SetAbortOnNull(Type, bool)

The same rule switched to also collapse the owning object when the value is NULL, or back.

public INullColHandler SetAbortOnNull(Type type, bool abortOnNull)

Parameters

type Type
abortOnNull bool

Returns

INullColHandler