Click or drag to resize
DataAccessAdapterBase.FetchProjection<T> 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

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax
public override List<T> FetchProjection<T>(
	IDataReader reader,
	IRetrievalQuery queryExecuted
)

Parameters

reader
Type: System.Data.IDataReader
The open reader to project the active resultset of
queryExecuted
Type: SD.LLBLGen.Pro.ORMSupportClasses.IRetrievalQuery
the query object executed which produced the reader. Pass the executed query object to make sure resultset caching is possible.

Type Parameters

T
Type of the return elements, one for each row

Return Value

Type: List<T>
List of instances of T, one for each row in the resultset of reader

Implements

IDataAccessAdapter.FetchProjection<T>(IDataReader, IRetrievalQuery)
Remarks
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.
See Also