Ejemplo n.º 1
0
        public override string Format(IDbCommand command = null)
        {
            string rez = string.Empty;

            foreach (QItem item in Items)
            {
                rez += item.Format(command);
                if (!items.IsLast(item))
                {
                    rez += ", ";
                }
            }
            if (rez.Length > 0)
            {
                rez = "(" + rez + ")";
            }
            //DBService.FormatToSqlText(value)
            return(rez);
        }
Ejemplo n.º 2
0
        public override string Format(IDbCommand command = null)
        {
            //if (command != null && Column != null)
            //{
            //    return $"({base.CreateParameter(command, Items.Select(p => p.GetValue()).ToList(), Column)})";
            //}

            string rez = string.Empty;

            foreach (QItem item in Items)
            {
                rez += item.Format(command);
                if (!items.IsLast(item))
                {
                    rez += ", ";
                }
            }
            if (rez.Length > 0)
            {
                rez = $"({rez})";
            }
            //DBService.FormatToSqlText(value)
            return(rez);
        }