DataAccessAdapterCoreFetchProjectionAsync Method (ListIDataValueProjector, IGeneralDataProjector, IRetrievalQuery, Boolean, Boolean, DictionaryInt32, TypeConverter, CancellationToken) |
Executes the passed in retrievalquery and projects the resultset using the value projectors and the projector specified.
IF a transaction is in progress, the command is wired to the transaction and executed inside the transaction. The projection results
will be stored in the projector.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax protected Task FetchProjectionAsync(
List<IDataValueProjector> valueProjectors,
IGeneralDataProjector projector,
IRetrievalQuery queryToExecute,
bool performValueProjectionsOnRawRow,
bool postProcessDBNullValues,
Dictionary<int, TypeConverter> typeConvertersToRun,
CancellationToken cancellationToken
)
Protected Function FetchProjectionAsync (
valueProjectors As List(Of IDataValueProjector),
projector As IGeneralDataProjector,
queryToExecute As IRetrievalQuery,
performValueProjectionsOnRawRow As Boolean,
postProcessDBNullValues As Boolean,
typeConvertersToRun As Dictionary(Of Integer, TypeConverter),
cancellationToken As CancellationToken
) As Task
Parameters
- valueProjectors
- Type: System.Collections.GenericListIDataValueProjector
The value projectors. - projector
- Type: SD.LLBLGen.Pro.ORMSupportClassesIGeneralDataProjector
The projector to use for projecting a plain row onto a new object provided by the projector. - queryToExecute
- Type: SD.LLBLGen.Pro.ORMSupportClassesIRetrievalQuery
The query to execute. - performValueProjectionsOnRawRow
- Type: SystemBoolean
if set to true [perform value projections on plain row]. - postProcessDBNullValues
- Type: SystemBoolean
if set to true [post process database null values]. - typeConvertersToRun
- Type: System.Collections.GenericDictionaryInt32, TypeConverter
The type converters to use for the query. The key is the index in the result row, the value is the type converter
to run on that value. These type converters have to run prior to the projectors will run. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskSee Also