Ejemplo n.º 1
0
 /// <inheritdoc />
 public override string ToString()
 {
     return("Aggregate(" + FormattingExpressionTreeVisitor.Format(Func) + ")");
 }
 public override string ToString()
 {
     return(string.Format("CONVERT({0}, {1})", GetSqlTypeName(), FormattingExpressionTreeVisitor.Format(_source)));
 }
 public override string ToString()
 {
     return(string.Format("ConvertedBoolean({0})", FormattingExpressionTreeVisitor.Format(_expression)));
 }
Ejemplo n.º 4
0
 public override string ToString()
 {
     return("Contains(" + FormattingExpressionTreeVisitor.Format(Item) + ")");
 }
Ejemplo n.º 5
0
 public override string ToString()
 {
     return("select " + FormattingExpressionTreeVisitor.Format(Selector));
 }
Ejemplo n.º 6
0
 public override string ToString()
 {
     return("Take(" + FormattingExpressionTreeVisitor.Format(Count) + ")");
 }
Ejemplo n.º 7
0
 public override string ToString()
 {
     return(String.Format("{0} AS {1}", FormattingExpressionTreeVisitor.Format(_expression), _name ?? DefaultName));
 }
 private NotSupportedException CreateParsingErrorException(MethodCallExpression expression, string message, params object[] args)
 {
     return(new NotSupportedException(
                string.Format("Could not parse expression '{0}': ", FormattingExpressionTreeVisitor.Format(expression))
                + string.Format(message, args)));
 }
Ejemplo n.º 9
0
 public override string ToString ()
 {
   return "Except(" + FormattingExpressionTreeVisitor.Format (Source2) + ")";
 }
Ejemplo n.º 10
0
 public override string ToString()
 {
     return("WHERE MISSING " + FormattingExpressionTreeVisitor.Format(Predicate));
 }
 public override string ToString()
 {
     return(string.Format("VBCompareString({0}, {1})", FormattingExpressionTreeVisitor.Format(Comparison), TextCompare));
 }
Ejemplo n.º 12
0
 /// <inheritdoc />
 public override string ToString()
 {
     return("All(" + FormattingExpressionTreeVisitor.Format(Predicate) + ")");
 }
Ejemplo n.º 13
0
        protected override Expression VisitLambdaExpression(LambdaExpression expression)
        {
            var message = string.Format(
                "LambdaExpressions are not supported in the SQL backend. Expression: '{0}'.", FormattingExpressionTreeVisitor.Format(expression));

            throw new NotSupportedException(message);
        }
Ejemplo n.º 14
0
 public override string ToString()
 {
     return(string.Format("ENTITY({0})", FormattingExpressionTreeVisitor.Format(_identityExpression)));
 }
Ejemplo n.º 15
0
        public override string ToString()
        {
            var result = string.Format("from {0} {1} in {2}", ItemType.Name, ItemName, FormattingExpressionTreeVisitor.Format(FromExpression));

            return(result);
        }
 public override string ToString()
 {
     return(Name + " (" + FormattingExpressionTreeVisitor.Format(FirstParameter) + ")");
 }
Ejemplo n.º 17
0
 public override string ToString()
 {
     return(string.Format("Fetch({0})", FormattingExpressionTreeVisitor.Format(Selector)));
 }
Ejemplo n.º 18
0
 public override string ToString()
 {
     return("Concat(" + FormattingExpressionTreeVisitor.Format(Source2) + ")");
 }
Ejemplo n.º 19
0
 public override string ToString()
 {
     return("where " + FormattingExpressionTreeVisitor.Format(Predicate));
 }
Ejemplo n.º 20
0
 public override string ToString()
 {
     return(FormattingExpressionTreeVisitor.Format(Expression) + (OrderingDirection == OrderingDirection.Asc ? " asc" : " desc"));
 }
Ejemplo n.º 21
0
        /// <summary>
        /// Parses the given <paramref name="expressionTree"/> into a chain of <see cref="IExpressionNode"/> instances, using
        /// <see cref="MethodInfoBasedNodeTypeRegistry"/> to convert expressions to nodes.
        /// </summary>
        /// <param name="expressionTree">The expression tree to parse.</param>
        /// <returns>A chain of <see cref="IExpressionNode"/> instances representing the <paramref name="expressionTree"/>.</returns>
        public IExpressionNode ParseTree(Expression expressionTree)
        {
            ArgumentUtility.CheckNotNull("expressionTree", expressionTree);

            if (expressionTree.Type == typeof(void))
            {
                throw new NotSupportedException(
                          string.Format("Expressions of type void ('{0}') are not supported.", FormattingExpressionTreeVisitor.Format(expressionTree)));
            }

            var processedExpressionTree = _processor.Process(expressionTree);

            return(ParseNode(processedExpressionTree, null));
        }
Ejemplo n.º 22
0
        private string FormatUnhandledItem <T>(T unhandledItem)
        {
            var itemAsExpression = unhandledItem as Expression;

            return(itemAsExpression != null?FormattingExpressionTreeVisitor.Format(itemAsExpression) : unhandledItem.ToString());
        }
Ejemplo n.º 23
0
 public override string ToString()
 {
     return(string.Format("{0} IS NOT NULL", FormattingExpressionTreeVisitor.Format(_expression)));
 }