/// <summary>
 /// Typed visitor pattern method for DbNullExpression.
 /// </summary>
 /// <param name="expression">The DbNullExpression that is being visited.</param>
 /// <returns>An instance of TResultType.</returns>
 public abstract TResultType Visit(DbNullExpression expression);
Esempio n. 2
0
 /// <summary>
 /// Visitor pattern method for DbNullExpression.
 /// </summary>
 /// <param name="expression">The DbNullExpression that is being visited.</param>
 public abstract void Visit(DbNullExpression expression);
 /// <summary>
 /// Visitor pattern method for <see cref="DbNullExpression"/>.
 /// </summary>
 /// <param name="expression">The DbNullExpression that is being visited.</param>
 /// <exception cref="ArgumentNullException"><paramref name="expression"/> is null</exception>
 public override void Visit(DbNullExpression expression)
 {
     // #433613: PreSharp warning 56506: Parameter 'expression' to this public method must be validated: A null-dereference can occur here.
     EntityUtil.CheckArgumentNull(expression, "expression");
 }
        public override DbExpression Visit(DbNullExpression expression)
        {
            EntityUtil.CheckArgumentNull(expression, "expression");

            return(VisitTerminal(expression, CqtBuilder.Null));
        }