LLBLGenProProviderBasePostProcessQueryResult Method |
Postprocesses the query result passed in. it will determine whether it will return a single value or the complete resultset. This is required as
some queries have implicit single value returns, while the results are e.g. in an IList construct.
Namespace:
SD.LLBLGen.Pro.LinqSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax protected virtual Object PostProcessQueryResult(
Object results,
Type resultType,
bool forceReturnSingleValue,
Object defaultValueToUse
)
Protected Overridable Function PostProcessQueryResult (
results As Object,
resultType As Type,
forceReturnSingleValue As Boolean,
defaultValueToUse As Object
) As Object
Parameters
- results
- Type: SystemObject
The results. - resultType
- Type: SystemType
Type of the result. - forceReturnSingleValue
- Type: SystemBoolean
if set to true it will always return a single value. True if e.g. Single() or First() is called. - defaultValueToUse
- Type: SystemObject
If specified (so not null), this default value has to be used if the result is a single value and there are no rows
Return Value
Type:
Object
the post-processing result
See Also