コード例 #1
0
 protected override Expression VisitFunction(FunctionExpression func)
 {
     if (this.linguist.Language.IsRowsAffectedExpressions(func))
     {
         return(Expression.Property(this.executor, "RowsAffected"));
     }
     return(base.VisitFunction(func));
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 protected virtual bool CompareFunction(FunctionExpression x, FunctionExpression y)
 {
     return((x.Name == y.Name) && this.CompareExpressionList(x.Arguments, y.Arguments));
 }
コード例 #6
0
        protected virtual Expression VisitFunction(FunctionExpression func)
        {
            ReadOnlyCollection <Expression> arguments = this.VisitExpressionList(func.Arguments);

            return(this.UpdateFunction(func, func.Name, arguments));
        }
コード例 #7
0
        public virtual bool IsRowsAffectedExpressions(Expression expression)
        {
            FunctionExpression expression2 = expression as FunctionExpression;

            return((expression2 != null) && (expression2.Name == "@@ROWCOUNT"));
        }