IDaoGetAsProjection Method (ListIDataValueProjector, IGeneralDataProjector, IRetrievalQuery, 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.5.0.0 (5.5.18.1019)
Syntax void GetAsProjection(
List<IDataValueProjector> valueProjectors,
IGeneralDataProjector projector,
IRetrievalQuery queryExecuted,
IDataReader reader
)
Sub GetAsProjection (
valueProjectors As List(Of IDataValueProjector),
projector As IGeneralDataProjector,
queryExecuted As IRetrievalQuery,
reader As IDataReader
)
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. - queryExecuted
- 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. - reader
- Type: System.DataIDataReader
The reader which points to the first row of a resultset
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