예제 #1
0
 internal override TreeNode Print(DbExpressionVisitor<TreeNode> visitor)
 {
     var node = new TreeNode("DbSetClause");
     if (null != Property)
     {
         node.Children.Add(new TreeNode("Property", Property.Accept(visitor)));
     }
     if (null != Value)
     {
         node.Children.Add(new TreeNode("Value", Value.Accept(visitor)));
     }
     return node;
 }
 // Effects: produces a tree node describing this clause, recursively producing nodes
 // for child expressions using the given expression visitor
 internal abstract TreeNode Print(DbExpressionVisitor<TreeNode> visitor);
        /// <summary>
        ///     The visitor pattern method for expression visitors that do not produce a result value.
        /// </summary>
        /// <param name="visitor"> An instance of DbExpressionVisitor. </param>
        /// <exception cref="ArgumentNullException">
        ///     <paramref name="visitor" />
        ///     is null
        /// </exception>
        public override void Accept(DbExpressionVisitor visitor)
        {
            Check.NotNull(visitor, "visitor");

            visitor.Visit(this);
        }
예제 #4
0
        /// <summary>The visitor pattern method for expression visitors that produce a result value of a specific type.</summary>
        /// <returns>The type of the result produced by the expression visitor.</returns>
        /// <param name="visitor">
        /// An instance of a typed <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionVisitor" /> that produces a result value of type TResultType.
        /// </param>
        /// <typeparam name="TResultType">The type of the result produced by  visitor </typeparam>
        /// <exception cref="T:System.ArgumentNullException"> visitor  is null</exception>
        public override TResultType Accept <TResultType>(DbExpressionVisitor <TResultType> visitor)
        {
            Check.NotNull(visitor, "visitor");

            return(visitor.Visit(this));
        }
예제 #5
0
 /// <summary>Implements the visitor pattern for expressions that do not produce a result value.</summary>
 /// <param name="visitor">
 /// An instance of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionVisitor" />.
 /// </param>
 /// <exception cref="T:System.ArgumentNullException"> visitor  is null.</exception>
 public override void Accept(DbExpressionVisitor visitor)
 {
     Check.NotNull <DbExpressionVisitor>(visitor, nameof(visitor));
     visitor.Visit(this);
 }
예제 #6
0
 /// <summary>Implements the visitor pattern for expressions that produce a result value of a specific type.</summary>
 /// <returns>
 /// The type of the result produced by <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionVisitor" />.
 /// </returns>
 /// <param name="visitor">
 /// An instance of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionVisitor" />.
 /// </param>
 /// <typeparam name="TResultType">The type of the result produced by visitor.</typeparam>
 public abstract TResultType Accept <TResultType>(DbExpressionVisitor <TResultType> visitor);
예제 #7
0
 /// <summary>Implements the visitor pattern for expressions that do not produce a result value.</summary>
 /// <param name="visitor">
 /// An instance of <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpressionVisitor" />.
 /// </param>
 public abstract void Accept(DbExpressionVisitor visitor);