public SimpleTCLCommand OptionalStringList(string name, TCLParameterList value)
        {
            if (value != null && value.Params.Any(v => !string.IsNullOrWhiteSpace(v)))
            {
                _parameters.Add(new TCLCommandStringListParameter(value));
            }

            return(this);
        }
        public SimpleTCLCommand RequiredNamedStringList(string name, TCLParameterList value)
        {
            if (value == null || !value.Params.Any() || value.Params.All(v => string.IsNullOrWhiteSpace(v)))
            {
                throw new ArgumentException($"Requires list of values");
            }

            _parameters.Add(new TCLCommandNamedStringListParameter(name, value));

            return(this);
        }
 public TCLCommandStringListParameter(TCLParameterList value)
 {
     _value = (value ?? new TCLParameterList());
 }
示例#4
0
 public TCLCommandNamedStringListParameter(string name, TCLParameterList value)
 {
     _name  = name;
     _value = (value ?? new TCLParameterList());
 }