ResolveRoutine() public method

Resolves the routine target of the invocation within the give context.

If the given context is null this method will try to resolve the routine towards the

/// If the routine could not be resolved for this call. ///
public ResolveRoutine ( IRequest context ) : IRoutine
context IRequest The query context used to resolve the routine.
return IRoutine
Example #1
0
        public override SqlExpression VisitFunctionCall(SqlFunctionCallExpression expression)
        {
            var invoke = new Invoke(expression.FunctioName, expression.Arguments);
            var function = invoke.ResolveRoutine(queryContext) as IFunction;
            if (function != null)
                dataType = function.ReturnType(invoke, queryContext, variableResolver);

            return base.VisitFunctionCall(expression);
        }