protected override Expression VisitFunction(FunctionExpression func) { if (this.linguist.Language.IsRowsAffectedExpressions(func)) { return(Expression.Property(this.executor, "RowsAffected")); } return(base.VisitFunction(func)); }
protected FunctionExpression UpdateFunction(FunctionExpression func, string name, IEnumerable <Expression> arguments) { if ((name != func.Name) || (arguments != func.Arguments)) { return(new FunctionExpression(func.Type, name, arguments)); } return(func); }
protected virtual Expression VisitFunction(FunctionExpression function) { base.Write("FUNCTION "); base.Write(function.Name); if (function.Arguments.Count > 0) { base.Write("("); this.VisitExpressionList(function.Arguments); base.Write(")"); } return(function); }
protected override Expression VisitFunction(FunctionExpression func) { this.Write(func.Name); if (func.Arguments.Count > 0) { this.Write("("); int num = 0; int count = func.Arguments.Count; while (num < count) { if (num > 0) { this.Write(", "); } this.Visit(func.Arguments[num]); num++; } this.Write(")"); } return(func); }
protected virtual bool CompareFunction(FunctionExpression x, FunctionExpression y) { return((x.Name == y.Name) && this.CompareExpressionList(x.Arguments, y.Arguments)); }
protected virtual Expression VisitFunction(FunctionExpression func) { ReadOnlyCollection <Expression> arguments = this.VisitExpressionList(func.Arguments); return(this.UpdateFunction(func, func.Name, arguments)); }
public virtual bool IsRowsAffectedExpressions(Expression expression) { FunctionExpression expression2 = expression as FunctionExpression; return((expression2 != null) && (expression2.Name == "@@ROWCOUNT")); }