Click or drag to resize

PreProcessorHandleMethodCallFirstSingle Method

Handles the method call expression for a call to Queryable.First. If isDefault is true, the expression can contain an argument that is the default value to return when no results are found, contrary to null.

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntax
protected virtual Expression HandleMethodCallFirstSingle(
	MethodCallExpression expressionToHandle,
	bool isSingle,
	bool isDefault
)

Parameters

expressionToHandle
Type: System.Linq.ExpressionsMethodCallExpression
The expression to handle.
isSingle
Type: SystemBoolean
if set to true, the call is a call to Queryable.Single, otherwise a call to Queryable.First
isDefault
Type: SystemBoolean
if set to true, the call is a call to Queryable.SingleOrDefault or Queryable.FirstOrDefault

Return Value

Type: Expression
SelectExpression
See Also