/// <summary>
 /// Typed visitor pattern method for DbCastExpression.
 /// </summary>
 /// <param name="expression">The DbCastExpression that is being visited.</param>
 /// <returns>An instance of TResultType.</returns>
 public abstract TResultType Visit(DbCastExpression expression);
Exemplo n.º 2
0
 /// <summary>
 /// Visitor pattern method for DbCastExpression.
 /// </summary>
 /// <param name="expression">The DbCastExpression that is being visited.</param>
 public abstract void Visit(DbCastExpression expression);
 /// <summary>
 /// Visitor pattern method for <see cref="DbCastExpression"/>.
 /// </summary>
 /// <param name="expression">The DbCastExpression that is being visited.</param>
 /// <exception cref="ArgumentNullException"><paramref name="expression"/> is null</exception>
 public override void Visit(DbCastExpression expression)
 {
     VisitUnaryExpression(expression);
 }
        public override DbExpression Visit(DbCastExpression expression)
        {
            EntityUtil.CheckArgumentNull(expression, "expression");

            return(this.VisitTypeUnary(expression, expression.ResultType, CqtBuilder.CastTo));
        }