Exemplo n.º 1
0
        public override DbExpression Visit(DbElementExpression expression)
        {
            Check.NotNull(expression, "expression");

            return(VisitUnary(
                       expression, expression.IsSinglePropertyUnwrapped
                                ? (Func <DbExpression, DbExpression>)CqtBuilder.CreateElementExpressionUnwrapSingleProperty
                                : CqtBuilder.Element));
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Visitor pattern method for <see cref="DbElementExpression" />.
        /// </summary>
        /// <param name="expression"> The DbElementExpression that is being visited. </param>
        /// <exception cref="ArgumentNullException">
        ///     <paramref name="expression" />
        ///     is null
        /// </exception>
        public override void Visit(DbElementExpression expression)
        {
            Check.NotNull(expression, "expression");

            VisitUnaryExpression(expression);
        }
 /// <summary>
 /// When overridden in a derived class, implements the visitor pattern for
 /// <see
 ///     cref="T:System.Data.Entity.Core.Common.CommandTrees.DbElementExpression" />
 /// .
 /// </summary>
 /// <returns>A result value of a specific type.</returns>
 /// <param name="expression">
 /// The <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbElementExpression" /> that is being visited.
 /// </param>
 public abstract TResultType Visit(DbElementExpression expression);
 /// <summary>
 /// When overridden in a derived class, implements the visitor pattern for
 /// <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbElementExpression" />
 /// .
 /// </summary>
 /// <param name="expression">
 /// The <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbElementExpression" /> that is visited.
 /// </param>
 public abstract void Visit(DbElementExpression expression);
 public override void Visit(DbElementExpression expression)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 /// Visitor pattern method for <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbElementExpression" />.
 /// </summary>
 /// <param name="expression"> The DbElementExpression that is being visited. </param>
 /// <exception cref="T:System.ArgumentNullException">
 /// <paramref name="expression" />
 /// is null
 /// </exception>
 public override void Visit(DbElementExpression expression)
 {
     Check.NotNull <DbElementExpression>(expression, nameof(expression));
     this.VisitUnaryExpression((DbUnaryExpression)expression);
 }