System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateIntoCanonicalFunction C# (CSharp) Method

TranslateIntoCanonicalFunction() private method

Translates the arguments into DbExpressions and creates a canonical function with the given functionName and these arguments
private TranslateIntoCanonicalFunction ( string functionName, Expression Expression ) : DbFunctionExpression
functionName string Should represent a non-aggregate canonical function
Expression System.Linq.Expressions.Expression Passed only for error handling purposes
return DbFunctionExpression
        private DbFunctionExpression TranslateIntoCanonicalFunction(
            string functionName, Expression Expression, params Expression[] linqArguments)
        {
            var translatedArguments = new DbExpression[linqArguments.Length];
            for (var i = 0; i < linqArguments.Length; i++)
            {
                translatedArguments[i] = TranslateExpression(linqArguments[i]);
            }
            return CreateCanonicalFunction(functionName, Expression, translatedArguments);
        }