Пример #1
0
        public string In(string field, ref int parIndex, AddParameHandler addParame, object[] args)
        {
            string str = InFormat(args[0], ref parIndex, addParame);

            return(dBAdapter.InFormat(field, str));
            //return string.Format("{0} IN ({1})", field, str);
        }
Пример #2
0
        public string In(string field, ExpressionType nodeType, ref int parIndex, AddParameHandler addParame, object[] args)
        {
            string str = InFormat(args[0], ref parIndex, addParame);

            if (nodeType == ExpressionType.Equal)
            {
                return(dBAdapter.InFormat(field, str));
            }
            else
            {
                return(dBAdapter.NotInFormat(field, str));
            }
            //return string.Format("{0} IN ({1})", field, str);
        }
Пример #3
0
        public string In(CRLExpression.MethodCallObj methodInfo, ref int parIndex, AddParameHandler addParame)
        {
            var    field    = methodInfo.MemberQueryName;
            var    nodeType = methodInfo.ExpressionType;
            var    args     = methodInfo.Args;
            string str      = InFormat(args[0], ref parIndex, addParame);

            if (nodeType == ExpressionType.Equal)
            {
                return(dBAdapter.InFormat(field, str));
            }
            else
            {
                return(dBAdapter.NotInFormat(field, str));
            }
            //return string.Format("{0} IN ({1})", field, str);
        }