DataAccessAdapterCore.FetchProjection Method (List<IDataValueProjector>, IGeneralDataProjector, IEntityFields2, IRelationPredicateBucket, Int32, ISortExpression, Boolean, Int32, Int32) |
Creates a new Retrieval query from the elements passed in, executes that retrievalquery and projects the resultset of that query 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.3.0.0 (5.3.0)
Syntaxpublic void FetchProjection(
List<IDataValueProjector> valueProjectors,
IGeneralDataProjector projector,
IEntityFields2 fields,
IRelationPredicateBucket filter,
int maxNumberOfItemsToReturn,
ISortExpression sortClauses,
bool allowDuplicates,
int pageNumber,
int pageSize
)
Public Sub FetchProjection (
valueProjectors As List(Of IDataValueProjector),
projector As IGeneralDataProjector,
fields As IEntityFields2,
filter As IRelationPredicateBucket,
maxNumberOfItemsToReturn As Integer,
sortClauses As ISortExpression,
allowDuplicates As Boolean,
pageNumber As Integer,
pageSize As Integer
)
Parameters
- valueProjectors
- Type: System.Collections.Generic.List<IDataValueProjector>
The value projectors. - projector
- Type: SD.LLBLGen.Pro.ORMSupportClasses.IGeneralDataProjector
The projector to use for projecting a plain row onto a new object provided by the projector. - fields
- Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields2
The fields to use to build the query. - filter
- Type: SD.LLBLGen.Pro.ORMSupportClasses.IRelationPredicateBucket
The filter. - maxNumberOfItemsToReturn
- Type: System.Int32
The max number of items to return. Specify 0 to return all elements - sortClauses
- Type: SD.LLBLGen.Pro.ORMSupportClasses.ISortExpression
The sort clauses. - allowDuplicates
- Type: System.Boolean
If set to true, allow duplicates in the resultset, otherwise it will emit DISTINCT into the query (if possible). - pageNumber
- Type: System.Int32
The page number. - pageSize
- Type: System.Int32
Size of the page.
Implements
IDataAccessAdapter.FetchProjection(List<IDataValueProjector>, IGeneralDataProjector, IEntityFields2, IRelationPredicateBucket, Int32, ISortExpression, Boolean, Int32, Int32)
See Also