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.9.0.0 (5.9.0)
Syntax protected virtual Expression HandleMethodCallFirstSingle(
MethodCallExpression expressionToHandle,
bool isSingle,
bool isDefault
)
Protected Overridable Function HandleMethodCallFirstSingle (
expressionToHandle As MethodCallExpression,
isSingle As Boolean,
isDefault As Boolean
) As Expression
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:
ExpressionSelectExpression
See Also