|IDataAccessAdapterFetchProjectionT Method (IDataReader, IRetrievalQuery)|
Projects the current resultset of the passed in datareader using the value projectors and the projector specified. The reader will be left open
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 126.96.36.199 (5.3.0)
Function FetchProjection(Of T) (
reader As IDataReader,
queryExecuted As IRetrievalQuery
) As List(Of T)
- Type: System.DataIDataReader
The open reader to project the active resultset of
- Type: SD.LLBLGen.Pro.ORMSupportClassesIRetrievalQuery
the query object executed which produced the reader. Pass the executed query object to make sure resultset caching is possible.
- Type of the return elements, one for each row
List of instances of T, one for each row in the resultset of reader
Use this overload together with FetchDataReader if your datareader contains multiple resultsets, so you have fine-grained
control over how you want to project which resultset in the datareader.
Resultset caching will occur if the passed in executedQuery is setup to cache its resultset.