示例#1
0
        public static void WriteCmd(string strcmd, HOYICMD cmd)
        {
            if (HOYIConf.OpenDebug)
            {
                //Console.WriteLine("SQL:" + strcmd);

                //Console.WriteLine("parameters:");

                CONSOLEWRITE("SQL:" + strcmd);
                CONSOLEWRITE("parameters:");

                foreach (DbParameter par in cmd.parameter)
                {
                    CONSOLEWRITE(par.ParameterName + "  ---->  " + par.Value);
                    //Console.WriteLine(par.ParameterName + "  ---->  " + par.Value);
                }
            }
        }
示例#2
0
        /// <summary>
        /// In命令.
        /// </summary>
        /// <param name="cmd"></param>
        /// <returns></returns>
        public FILTER NotIn(HOYICMD cmd)
        {
            FILTER prefilter = null;
            FILTER filter = null;

            filter = new FILTER(this.fieldname, "cmdnotin", cmd);
            if (prefilter == null)
            {
                prefilter = filter;
            }
            else
            {
                filter.PreOps = "";
                filter.Pre = prefilter;
                prefilter = filter;
            }

            return filter;
        }