Table of Contents

Class PreparedQueryCommand<TResult, TRecord>

Namespace
NextORM.Core
Assembly
nextorm.core.dll

Base class for prepared (compiled) query commands.

public class PreparedQueryCommand<TResult, TRecord> : IPreparedQueryCommand<TResult>

Type Parameters

TResult
TRecord
Inheritance
PreparedQueryCommand<TResult, TRecord>
Implements
Derived
Inherited Members
Extension Methods

Constructors

PreparedQueryCommand(Func<Func<TRecord, TResult>?>)

Creates a prepared command that resolves its record-to-result mapper lazily.

public PreparedQueryCommand(Func<Func<TRecord, TResult>?> getMap)

Parameters

getMap Func<Func<TRecord, TResult>>

Produces the mapper, or null when no projection is needed.

PreparedQueryCommand(Func<TRecord, TResult>?)

Creates a prepared command with a fixed record-to-result mapper.

public PreparedQueryCommand(Func<TRecord, TResult>? mapDelegate)

Parameters

mapDelegate Func<TRecord, TResult>

Maps a record to a result, or null when no projection is needed.

Fields

MapDelegate

Maps a single record to the query result, or null when no projection is needed.

public readonly Func<TRecord, TResult>? MapDelegate

Field Value

Func<TRecord, TResult>