/// <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))); }
public override string ToString() { return("Contains(" + FormattingExpressionTreeVisitor.Format(Item) + ")"); }
public override string ToString() { return("select " + FormattingExpressionTreeVisitor.Format(Selector)); }
public override string ToString() { return("Take(" + FormattingExpressionTreeVisitor.Format(Count) + ")"); }
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))); }
public override string ToString () { return "Except(" + FormattingExpressionTreeVisitor.Format (Source2) + ")"; }
public override string ToString() { return("WHERE MISSING " + FormattingExpressionTreeVisitor.Format(Predicate)); }
public override string ToString() { return(string.Format("VBCompareString({0}, {1})", FormattingExpressionTreeVisitor.Format(Comparison), TextCompare)); }
/// <inheritdoc /> public override string ToString() { return("All(" + FormattingExpressionTreeVisitor.Format(Predicate) + ")"); }
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); }
public override string ToString() { return(string.Format("ENTITY({0})", FormattingExpressionTreeVisitor.Format(_identityExpression))); }
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) + ")"); }
public override string ToString() { return(string.Format("Fetch({0})", FormattingExpressionTreeVisitor.Format(Selector))); }
public override string ToString() { return("Concat(" + FormattingExpressionTreeVisitor.Format(Source2) + ")"); }
public override string ToString() { return("where " + FormattingExpressionTreeVisitor.Format(Predicate)); }
public override string ToString() { return(FormattingExpressionTreeVisitor.Format(Expression) + (OrderingDirection == OrderingDirection.Asc ? " asc" : " desc")); }
/// <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)); }
private string FormatUnhandledItem <T>(T unhandledItem) { var itemAsExpression = unhandledItem as Expression; return(itemAsExpression != null?FormattingExpressionTreeVisitor.Format(itemAsExpression) : unhandledItem.ToString()); }
public override string ToString() { return(string.Format("{0} IS NOT NULL", FormattingExpressionTreeVisitor.Format(_expression))); }