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

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