SqlTranslatingExpressionVisitor.VisitUnhandledItem<TItem,TResult> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when an unhandled item is visited. This method provides the item the visitor cannot handle (unhandledItem
),
the visitMethod
that is not implemented in the visitor, and a delegate that can be used to invoke the
baseBehavior
of the Remotion.Linq.Parsing.RelinqExpressionVisitor class. The default behavior of
this method is to call the
Remotion.Linq.Parsing.ThrowingExpressionVisitor.CreateUnhandledItemException``1(``0,System.String) method, but it can
be overridden to do something else.
protected override TResult VisitUnhandledItem<TItem,TResult> (TItem unhandledItem, string visitMethod, Func<TItem,TResult> baseBehavior) where TItem : TResult;
override this.VisitUnhandledItem : 'Item * string * Func<#'Result, 'Result> -> 'Result
Protected Overrides Function VisitUnhandledItem(Of TItem As TResult, TResult As TResult) (unhandledItem As TItem, visitMethod As String, baseBehavior As Func(Of TItem, TResult)) As TResult
Type Parameters
- TItem
The type of the item that could not be handled. Either an Expression type, a MemberBinding type, or ElementInit.
- TResult
The result type expected for the visited unhandledItem
.
Parameters
- unhandledItem
- TItem
The unhandled item.
- visitMethod
- String
The visit method that is not implemented.
- baseBehavior
- Func<TItem,TResult>
The behavior exposed by Remotion.Linq.Parsing.RelinqExpressionVisitor for this item type.
Returns
An object to replace unhandledItem
in the expression tree. Alternatively, the method can throw any exception.
Applies to
Entity Framework