Class PreparedQueryCommand<TResult, TRecord>
Base class for prepared (compiled) query commands.
public class PreparedQueryCommand<TResult, TRecord> : IPreparedQueryCommand<TResult>
Type Parameters
TResultTRecord
- Inheritance
-
PreparedQueryCommand<TResult, TRecord>
- Implements
-
IPreparedQueryCommand<TResult>
- 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
PreparedQueryCommand(Func<TRecord, TResult>?)
Creates a prepared command with a fixed record-to-result mapper.
public PreparedQueryCommand(Func<TRecord, TResult>? mapDelegate)
Parameters
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>