DaoBaseGetAsProjection Method (ListIDataValueProjector, IGeneralDataProjector, ITransaction, IEntityFields, IPredicateExpression, IRelationCollection, Int32, ISortExpression, IGroupByCollection, 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 specified, 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.ORMSupportClassesAssembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax public void GetAsProjection(
List<IDataValueProjector> valueProjectors,
IGeneralDataProjector projector,
ITransaction transactionToUse,
IEntityFields fields,
IPredicateExpression filter,
IRelationCollection relations,
int maxNumberOfItemsToReturn,
ISortExpression sortClauses,
IGroupByCollection groupByClause,
bool allowDuplicates,
int pageNumber,
int pageSize
)
Public Sub GetAsProjection (
valueProjectors As List(Of IDataValueProjector),
projector As IGeneralDataProjector,
transactionToUse As ITransaction,
fields As IEntityFields,
filter As IPredicateExpression,
relations As IRelationCollection,
maxNumberOfItemsToReturn As Integer,
sortClauses As ISortExpression,
groupByClause As IGroupByCollection,
allowDuplicates As Boolean,
pageNumber As Integer,
pageSize As Integer
)
Parameters
- valueProjectors
- Type: System.Collections.GenericListIDataValueProjector
The value projectors. - projector
- Type: SD.LLBLGen.Pro.ORMSupportClassesIGeneralDataProjector
The projector to use for projecting a raw row onto a new object provided by the projector. - transactionToUse
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
The transaction to use, if you execute this method inside a transcation. Specify null otherwise - fields
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFields
The fields to use to build the query. - filter
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicateExpression
The filter. - relations
- Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationCollection
The relations. - maxNumberOfItemsToReturn
- Type: SystemInt32
The max number of items to return. Specify 0 to return all elements - sortClauses
- Type: SD.LLBLGen.Pro.ORMSupportClassesISortExpression
The sort clauses. - groupByClause
- Type: SD.LLBLGen.Pro.ORMSupportClassesIGroupByCollection
The group by clause. - allowDuplicates
- Type: SystemBoolean
If set to true, allow duplicates in the resultset, otherwise it will emit DISTINCT into the query (if possible). - pageNumber
- Type: SystemInt32
The page number. - pageSize
- Type: SystemInt32
Size of the page.
Implements
IDaoGetAsProjection(ListIDataValueProjector, IGeneralDataProjector, ITransaction, IEntityFields, IPredicateExpression, IRelationCollection, Int32, ISortExpression, IGroupByCollection, Boolean, Int32, Int32)See Also