Click or drag to resize
DynamicQueryEngine.CreateSelectDQ Method (IEntityFieldCore[],IFieldPersistenceInfo[], IRetrievalQuery, IPredicate, Int64, ISortExpression, IRelationCollection, Boolean, IGroupByCollection, Boolean, Boolean)
Creates a new Select Query which is ready to use, based on the specified select list and the specified set of relations. If selectFilter is set to null, all rows are selected.

Namespace:  SD.LLBLGen.Pro.DQE.SqlServer
Assembly:  SD.LLBLGen.Pro.DQE.SqlServer (in SD.LLBLGen.Pro.DQE.SqlServer.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax
protected override void CreateSelectDQ(
	IEntityFieldCore[] selectList,
	IFieldPersistenceInfo[] fieldsPersistenceInfo,
	IRetrievalQuery query,
	IPredicate selectFilter,
	long maxNumberOfItemsToReturn,
	ISortExpression sortClauses,
	IRelationCollection relationsToWalk,
	bool allowDuplicates,
	IGroupByCollection groupByClause,
	bool relationsSpecified,
	bool sortClausesSpecified
)

Parameters

selectList
Type:SD.LLBLGen.Pro.ORMSupportClasses.IEntityFieldCore[]
list of IEntityFieldCore objects to select
fieldsPersistenceInfo
Type:SD.LLBLGen.Pro.ORMSupportClasses.IFieldPersistenceInfo[]
Array of IFieldPersistenceInfo objects to use to build the select query
query
Type: SD.LLBLGen.Pro.ORMSupportClasses.IRetrievalQuery
The query to fill.
selectFilter
Type: SD.LLBLGen.Pro.ORMSupportClasses.IPredicate
A complete IPredicate implementing object which contains the filter for the rows to select. When set to null, no filtering is done, and all rows are returned.
maxNumberOfItemsToReturn
Type: System.Int64
The maximum number of items to return with this retrieval query. If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.
sortClauses
Type: SD.LLBLGen.Pro.ORMSupportClasses.ISortExpression
The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.
relationsToWalk
Type: SD.LLBLGen.Pro.ORMSupportClasses.IRelationCollection
list of EntityRelation objects, which will be used to formulate a FROM clause with INNER JOINs.
allowDuplicates
Type: System.Boolean
Flag which forces the inclusion of DISTINCT if set to true. If the resultset contains fields of type ntext, text or image, no duplicate filtering is done.
groupByClause
Type: SD.LLBLGen.Pro.ORMSupportClasses.IGroupByCollection
The list of fields to group by on. When not specified or an empty collection is specified, no group by clause is added to the query. A check is performed for each field in the selectList. If a field in the selectList is not present in the groupByClause collection, an exception is thrown.
relationsSpecified
Type: System.Boolean
flag to signal if relations are specified, this is a result of a check. This routine should simply assume the value of this flag is correct.
sortClausesSpecified
Type: System.Boolean
flag to signal if sortClauses are specified, this is a result of a check. This routine should simply assume the value of this flag is correct.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen selectList is null or fieldsPersistenceInfo is null
ArgumentExceptionWhen selectList contains no EntityFieldCore instances or fieldsPersistenceInfo is empty.
See Also