Exemplo n.º 1
0
 /// <summary>
 /// Visits a QueryExpression tree whose root node is the LinqToAstoriaValueExpression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Uri query string representing the expression.</returns>
 public virtual string Visit(LinqToAstoriaValueExpression expression)
 {
     throw new TaupoNotSupportedException("Not supported");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Visits a QueryExpression tree whose root node is the LinqToAstoriaValueExpression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Uri query string representing the expression.</returns>
 public override string Visit(LinqToAstoriaValueExpression expression)
 {
     return string.Format(CultureInfo.InvariantCulture, "{0}/{1}", this.ComputeUriInternal(expression.Source), Endpoints.Value);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Visits a LinqToAstoriaValueExpression.
 /// </summary>
 /// <param name="expression">The expression.</param>
 /// <returns>The result of visiting this expression.</returns>
 public CodeExpression Visit(LinqToAstoriaValueExpression expression)
 {
     throw new TaupoNotSupportedException("Not supported");
 }
Exemplo n.º 4
0
        /// <summary>
        /// Resolves types for the specified expression.
        /// </summary>
        /// <param name="expression">The expression to resolve types for.</param>
        /// <returns>Expression with resolved types.</returns>
        public QueryExpression Visit(LinqToAstoriaValueExpression expression)
        {
            var source = this.ResolveTypes(expression.Source);

            return(new LinqToAstoriaValueExpression(source, source.ExpressionType));
        }
Exemplo n.º 5
0
 /// <summary>
 /// Visits a QueryExpression tree whose root node is the LinqToAstoriaValueExpression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Parameter expression with a resolved name.</returns>
 public virtual QueryExpression Visit(LinqToAstoriaValueExpression expression)
 {
     return(expression);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Visits a LinqToAstoriaValueExpression.
 /// </summary>
 /// <param name="expression">The expression.</param>
 /// <returns>The result of visiting this expression.</returns>
 public QueryValue Visit(LinqToAstoriaValueExpression expression)
 {
     return(this.Evaluate(expression.Source));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Visits a QueryExpression tree whose root node is the LinqToAstoriaValueExpression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Uri query string representing the expression.</returns>
 public override string Visit(LinqToAstoriaValueExpression expression)
 {
     return(string.Format(CultureInfo.InvariantCulture, "{0}/{1}", this.ComputeUriInternal(expression.Source), Endpoints.Value));
 }