Exemple #1
0
        public string Replace(CRLExpression.MethodCallObj methodInfo, ref int parIndex, AddParameHandler addParame)
        {
            var    field   = methodInfo.MemberQueryName;
            var    args    = methodInfo.Args;
            string parName = string.Format("@repf{0}", parIndex);
            var    args1   = args[0];

            if (args1 is ExpressionValueObj)
            {
                parName = args1.ToString();
            }
            else
            {
                addParame(parName, args1);
            }
            var args2 = args[1];

            parIndex += 1;
            string parName2 = string.Format("@repd{0}", parIndex);

            addParame(parName2, args2);
            parIndex += 1;
            //DateDiff(2015/2/5 17:59:44,t1.AddTime,@DateDiff1)>1
            return(dBAdapter.Replace(field, parName, parName2));
        }