System.Data.Common.CommandTrees.Internal.ExpressionPrinter.PrinterVisitor.AppendParameters(System.Data.Common.Utils.TreeNode, System.Collections.Generic.IEnumerable)

Here are the examples of the csharp api class System.Data.Common.CommandTrees.Internal.ExpressionPrinter.PrinterVisitor.AppendParameters(System.Data.Common.Utils.TreeNode, System.Collections.Generic.IEnumerable) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

View license
internal TreeNode VisitFunction(EdmFunction func, IList<DbExpression> args)
            {
                TreeNode funcInfo = new TreeNode();
                AppendFullName(funcInfo.Text, func);

                AppendParameters(funcInfo, func.Parameters.Select(fp => new KeyValuePair<string, TypeUsage>(fp.Name, fp.TypeUsage)));
                if (args != null)
                {
                    AppendArguments(funcInfo, func.Parameters.Select(fp => fp.Name).ToArray(), args);
                }

                return funcInfo;
            }

2. Example

View license
public override TreeNode Visit(DbLambdaExpression expression)
            {
                TreeNode lambdaInfo = new TreeNode();
                lambdaInfo.Text.Append("Lambda");

                AppendParameters(lambdaInfo, expression.Lambda.Variables.Select(v => new KeyValuePair<string, TypeUsage>(v.VariableName, v.ResultType)));
                AppendArguments(lambdaInfo, expression.Lambda.Variables.Select(v => v.VariableName).ToArray(), expression.Arguments);
                lambdaInfo.Children.Add(this.Visit("Body", expression.Lambda.Body));

                return lambdaInfo;
            }