Click or drag to resize

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.5.0.0 (5.5.18.1019)
Syntax
protected bool HandleDistinctEmit(
	QueryParameters parameters,
	IRetrievalQuery selectQuery,
	StringPlaceHolder distinctPlaceholder,
	bool distinctViolatingTypesFound,
	bool uniqueRows,
	HashSet<string> fieldNamesInSelectList
)

Parameters

parameters
Type: SD.LLBLGen.Pro.ORMSupportClassesQueryParameters
The parameters the query is based on.
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: System.Collections.GenericHashSetString
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