DaoBaseGetAsProjectionT Method (IDataReader) |
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.6.0.0 (5.6.19.0117)
Syntax public List<T> GetAsProjection<T>(
IDataReader reader
)
Public Function GetAsProjection(Of T) (
reader As IDataReader
) As List(Of T)
Parameters
- reader
- Type: System.DataIDataReader
The open reader to project the active resultset of
Type Parameters
- T
- Type of the return elements, one for each row
Return Value
Type:
ListTList of instances of T, one for each row in the resultset of reader
Implements
IDaoGetAsProjectionT(IDataReader)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 not occur. To use resultset caching, use the overload which accepts an IRetrievalQuery
See Also