Here are the examples of the csharp api class System.Data.Common.CommandTrees.Internal.ExpressionPrinter.Print(System.Data.Common.CommandTrees.DbQueryCommandTree) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
6 Examples
0
1. Example
Project: referencesource
Source File: ExpressionPrinter.cs
Source File: ExpressionPrinter.cs
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal string Print(DbExpression expr) { Debug.Assert(expr != null, "Null DbExpression"); return this.Print(_visitor.VisitExpression(expr)); }
0
2. Example
Project: referencesource
Source File: ExpressionPrinter.cs
Source File: ExpressionPrinter.cs
internal string Print(DbDeleteCommandTree tree) { // Predicate should not be null since DbDeleteCommandTree initializes it to DbConstantExpression(true) Debug.Assert(tree != null && tree.Predicate != null, "Invalid DbDeleteCommandTree"); TreeNode targetNode; if (tree.Target != null) { targetNode = _visitor.VisitBinding("Target", tree.Target); } else { targetNode = new TreeNode("Target"); } TreeNode predicateNode; if (tree.Predicate != null) { predicateNode = _visitor.VisitExpression("Predicate", tree.Predicate); } else { predicateNode = new TreeNode("Predicate"); } return this.Print(new TreeNode( "DbDeleteCommandTree", CreateParametersNode(tree), targetNode, predicateNode)); }
0
3. Example
Project: referencesource
Source File: ExpressionPrinter.cs
Source File: ExpressionPrinter.cs
internal string Print(DbFunctionCommandTree tree) { Debug.Assert(tree != null, "Null DbFunctionCommandTree"); TreeNode funcNode = new TreeNode("EdmFunction"); if (tree.EdmFunction != null) { funcNode.Children.Add(_visitor.VisitFunction(tree.EdmFunction, null)); } TreeNode typeNode = new TreeNode("ResultType"); if (tree.ResultType != null) { PrinterVisitor.AppendTypeSpecifier(typeNode, tree.ResultType); } return this.Print(new TreeNode("DbFunctionCommandTree", CreateParametersNode(tree), funcNode, typeNode)); }
0
4. Example
Project: referencesource
Source File: ExpressionPrinter.cs
Source File: ExpressionPrinter.cs
internal string Print(DbQueryCommandTree tree) { Debug.Assert(tree != null, "Null DbQueryCommandTree"); TreeNode queryNode = new TreeNode("Query"); if (tree.Query != null) { PrinterVisitor.AppendTypeSpecifier(queryNode, tree.Query.ResultType); queryNode.Children.Add(_visitor.VisitExpression(tree.Query)); } return this.Print(new TreeNode("DbQueryCommandTree", CreateParametersNode(tree), queryNode)); }
0
5. Example
Project: referencesource
Source File: ExpressionPrinter.cs
Source File: ExpressionPrinter.cs
internal string Print(DbInsertCommandTree tree) { Debug.Assert(tree != null, "Null DbInsertCommandTree"); TreeNode targetNode = null; if (tree.Target != null) { targetNode = _visitor.VisitBinding("Target", tree.Target); } else { targetNode = new TreeNode("Target"); } TreeNode clausesNode = new TreeNode("SetClauses"); foreach (DbModificationClause clause in tree.SetClauses) { if (clause != null) { clausesNode.Children.Add(clause.Print(_visitor)); } } TreeNode returningNode = null; if (null != tree.Returning) { returningNode = new TreeNode("Returning", _visitor.VisitExpression(tree.Returning)); } else { returningNode = new TreeNode("Returning"); } return this.Print(new TreeNode( "DbInsertCommandTree", CreateParametersNode(tree), targetNode, clausesNode, returningNode)); }
0
6. Example
Project: referencesource
Source File: ExpressionPrinter.cs
Source File: ExpressionPrinter.cs
internal string Print(DbUpdateCommandTree tree) { // Predicate should not be nul/n ..... /n //View Source file for more details /n }