コード例 #1
0
 public override void Visit(DbRefKeyExpression expression)
 {
     Write(expression);
     _depth++;
     Write("Argument", expression.Argument);
     _depth--;
 }
コード例 #2
0
 public override Expression Visit(DbRefKeyExpression expression)
 {
     throw new NotImplementedException(
               string.Format(
                   ExceptionMessages.DbExpressionTransformationNotImplemented,
                   typeof(DbRefKeyExpression).Name));
 }
コード例 #3
0
ファイル: ExpressionDumper.cs プロジェクト: jwanagel/jjwtest
        public override void Visit(DbRefKeyExpression e)
        {
            Check.NotNull(e, "e");

            BeginUnary(e);
            End(e);
        }
コード例 #4
0
 public override Expression Visit(DbRefKeyExpression expression)
 {
     throw new NotImplementedException(
         string.Format(
             ExceptionMessages.DbExpressionTransformationNotImplemented,
             typeof(DbRefKeyExpression).Name));
 }
コード例 #5
0
        /// <summary>
        /// Implements the visitor pattern for <see cref="T:System.Data.Common.CommandTrees.DbRefKeyExpression"/>.
        /// </summary>
        /// <param name="expression">The <see cref="T:System.Data.Common.CommandTrees.DbRefKeyExpression"/> that is visited.</param>
        public override void Visit(DbRefKeyExpression expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

            expression.Argument.Accept(this);
        }
コード例 #6
0
            /// <summary>
            ///     Evaluates a ref key expression based on the result of evaluating the argument to the ref.
            /// </summary>
            /// <param name="node"> Ref key expression node. </param>
            /// <returns> The structural key of the ref as a new instance (record). </returns>
            public override PropagatorResult Visit(DbRefKeyExpression node)
            {
                Check.NotNull(node, "node");

                // Retrieve the result of evaluating the child argument.
                var argument = Visit(node.Argument);

                // Return the argument directly (propagator results treat refs as standard structures)
                return(argument);
            }
コード例 #7
0
            /// <summary>
            /// Evaluates a ref key expression based on the result of evaluating the argument to the ref.
            /// </summary>
            /// <param name="node">Ref key expression node.</param>
            /// <returns>The structural key of the ref as a new instance (record).</returns>
            public override PropagatorResult Visit(DbRefKeyExpression node)
            {
                Debug.Assert(null != node, "node is not visited when null");

                // Retrieve the result of evaluating the child argument.
                PropagatorResult argument = Visit(node.Argument);

                // Return the argument directly (propagator results treat refs as standard structures)
                return(argument);
            }
コード例 #8
0
        /// <summary>
        ///     Visitor pattern method for <see cref="DbRefKeyExpression" />.
        /// </summary>
        /// <param name="expression"> The DbRefKeyExpression that is being visited. </param>
        /// <exception cref="ArgumentNullException">
        ///     <paramref name="expression" />
        ///     is null
        /// </exception>
        public override void Visit(DbRefKeyExpression expression)
        {
            Check.NotNull(expression, "expression");

            VisitUnaryExpression(expression);
        }
コード例 #9
0
 public override void Visit(DbRefKeyExpression e)
 {
     VisitUnary(e);
 }
コード例 #10
0
 public override TreeNode Visit(DbRefKeyExpression e)
 {
     Check.NotNull <DbRefKeyExpression>(e, nameof(e));
     return(this.VisitUnary((DbUnaryExpression)e, true));
 }
コード例 #11
0
 public override LegacyCommandTrees.DbExpression Visit(DbRefKeyExpression expression)
 {
     throw new NotImplementedException();
 }
コード例 #12
0
 public override object Visit(DbRefKeyExpression expression)
 {
     this.Visit(expression.Argument);
     return(null);
 }
コード例 #13
0
 public override DbExpression Visit(DbRefKeyExpression expression)
 {
     System.Diagnostics.Debug.Print("Visit(DbRefKeyExpression): {0}", expression);
     return(base.Visit(expression));
 }
コード例 #14
0
 public override void Visit(DbRefKeyExpression expression)
 {
     Contract.Requires(expression != null);
 }
コード例 #15
0
 /// <summary>
 ///     Visitor pattern method for DbRefKeyExpression.
 /// </summary>
 /// <param name="expression"> The DbRefKeyExpression that is being visited. </param>
 /// <returns> An instance of TResultType. </returns>
 public abstract TResultType Visit(DbRefKeyExpression expression);
コード例 #16
0
 public override ViewValidator.DbExpressionEntitySetInfo Visit(
     DbRefKeyExpression expression)
 {
     Check.NotNull <DbRefKeyExpression>(expression, nameof(expression));
     return((ViewValidator.DbExpressionEntitySetInfo)null);
 }
コード例 #17
0
 public override void Visit(DbRefKeyExpression e)
 {
     Check.NotNull <DbRefKeyExpression>(e, nameof(e));
     this.VisitUnary((DbUnaryExpression)e);
 }
コード例 #18
0
 public override void Visit(DbRefKeyExpression expression) { }
 public override DbExpression Visit(DbRefKeyExpression expression)
 {
     System.Diagnostics.Debug.Print("Visit(DbRefKeyExpression): {0}", expression);
     return base.Visit(expression);
 }
コード例 #20
0
 public override TReturn Visit(DbRefKeyExpression expression)
 {
     Check.NotNull <DbRefKeyExpression>(expression, nameof(expression));
     throw this.ConstructNotSupportedException((DbExpression)expression);
 }
コード例 #21
0
 public override TreeNode Visit(DbRefKeyExpression e)
 {
     return(this.VisitUnary(e, true));
 }
コード例 #22
0
 public override void Visit(DbRefKeyExpression expression)
 {
     this.VisitUnaryExpression((DbUnaryExpression)expression);
 }
コード例 #23
0
 /// <summary>
 ///     Visitor pattern method for DbRefKeyExpression.
 /// </summary>
 /// <param name="expression"> The DbRefKeyExpression that is being visited. </param>
 public abstract void Visit(DbRefKeyExpression expression);
コード例 #24
0
 public override VfpExpression Visit(DbRefKeyExpression expression)
 {
     return(new VfpRefKeyExpression(expression.ResultType, expression.Argument.Accept(this)));
 }
コード例 #25
0
 public override bool Visit(DbRefKeyExpression expression)
 {
     Check.NotNull <DbRefKeyExpression>(expression, nameof(expression));
     return(this.VisitUnaryExpression((DbUnaryExpression)expression));
 }
コード例 #26
0
            public override DbExpressionEntitySetInfo Visit(DbRefKeyExpression expression)
            {
                Check.NotNull(expression, "expression");

                return(null);
            }
コード例 #27
0
 /// <summary>
 ///     Visitor pattern method for DbRefKeyExpression.
 /// </summary>
 /// <param name="expression"> The DbRefKeyExpression that is being visited. </param>
 public abstract void Visit(DbRefKeyExpression expression);
コード例 #28
0
 public override void Visit(DbRefKeyExpression e)
 {
     BeginUnary(e);
     End(e);
 }
コード例 #29
0
 public override void Visit(DbRefKeyExpression expression)
 {
     throw new NotSupportedException("Visit(\"DbRefKeyExpression\") is not supported.");
 }
コード例 #30
0
 public override void Visit(DbRefKeyExpression expression)
 {
   VisitUnaryExpression(expression);
 }
コード例 #31
0
		public override void Visit(DbRefKeyExpression expression)
		{
			throw new NotSupportedException("Visit(\"RefKeyExpression\") is not supported.");
		}
コード例 #32
0
 public override bool Visit(DbRefKeyExpression expression)
 {
     return(VisitUnaryExpression(expression));
 }
コード例 #33
0
 public override void Visit(DbRefKeyExpression expression)
 {
     VisitUnaryExpression(expression);
 }
コード例 #34
0
        public override TReturn Visit(DbRefKeyExpression expression)
        {
            Check.NotNull(expression, "expression");

            throw ConstructNotSupportedException(expression);
        }
コード例 #35
0
 public override void Visit(DbRefKeyExpression e)
 {
     VisitUnary(e);
 }
コード例 #36
0
            public override TreeNode Visit(DbRefKeyExpression e)
            {
                Check.NotNull(e, "e");

                return(VisitUnary(e, true));
            }
コード例 #37
0
 public override ISqlFragment Visit(DbRefKeyExpression e)
 {
     throw new NotSupportedException();
 }
コード例 #38
0
        /// <summary>
        ///     <see cref="VisitUnaryExpression" />
        /// </summary>
        /// <param name="expression"> The DbRefKeyExpression that is being visited. </param>
        /// <returns> </returns>
        public override bool Visit(DbRefKeyExpression expression)
        {
            Check.NotNull(expression, "expression");

            return(VisitUnaryExpression(expression));
        }
コード例 #39
0
        public override void Visit(DbRefKeyExpression e)
        {
            Check.NotNull(e, "e");

            VisitUnary(e);
        }
コード例 #40
0
 public override TReturn Visit(DbRefKeyExpression expression)
 {
     throw ConstructNotSupportedException(expression);
 }
コード例 #41
0
 public override DbExpressionEntitySetInfo Visit(DbRefKeyExpression expression)
 {
     return(null);
 }
コード例 #42
0
        /// <summary>
        /// Implements the visitor pattern for <see cref="T:System.Data.Common.CommandTrees.DbRefKeyExpression"/>.
        /// </summary>
        /// <param name="expression">The <see cref="T:System.Data.Common.CommandTrees.DbRefKeyExpression"/> that is visited.</param>
        public override void Visit(DbRefKeyExpression expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

            expression.Argument.Accept(this);
        }