DynamicQueryEngineBaseHandleDistinctEmit Method |
Handles the emit of 'DISTINCT' into the query text and returns true if distinct was emitted or false if not.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.1.0.0 (5.1.0)
Syntax protected bool HandleDistinctEmit(
ISortExpression sortClauses,
bool allowDuplicates,
bool sortClausesSpecified,
IRetrievalQuery selectQuery,
StringPlaceHolder distinctPlaceholder,
bool distinctViolatingTypesFound,
bool uniqueRows,
UniqueList<string> fieldNamesInSelectList
)
Protected Function HandleDistinctEmit (
sortClauses As ISortExpression,
allowDuplicates As Boolean,
sortClausesSpecified As Boolean,
selectQuery As IRetrievalQuery,
distinctPlaceholder As StringPlaceHolder,
distinctViolatingTypesFound As Boolean,
uniqueRows As Boolean,
fieldNamesInSelectList As UniqueList(Of String)
) As Boolean
Parameters
- sortClauses
- Type: SD.LLBLGen.Pro.ORMSupportClassesISortExpression
the sortclauses passed to the routine - allowDuplicates
- Type: SystemBoolean
flag if duplicates are allowed - sortClausesSpecified
- Type: SystemBoolean
flag if sortclauses is filled with at least one clause - selectQuery
- Type: SD.LLBLGen.Pro.ORMSupportClassesIRetrievalQuery
the query object to build - distinctPlaceholder
- Type: SD.LLBLGen.Pro.ORMSupportClassesStringPlaceHolder
The distinct placeholder. - distinctViolatingTypesFound
- Type: SystemBoolean
flag if distinct violating types were found - uniqueRows
- Type: SystemBoolean
if set to true, there are no duplicates possible due to joins. This is the case if there is a PK field and
there are no relations or the relations don't result in duplicates. - fieldNamesInSelectList
- Type: SD.LLBLGen.Pro.ORMSupportClassesUniqueListString
the fieldnames in the select list (for sort field distinct violation checks)
Return Value
Type:
Boolean
true if distinct was emitted, false otherwise.
See Also