public override void AddParameter(string name, int index)
 {
     Parameters[index] = new WSBinaryCommandTypeParameter()
     {
         Name = name, Value = null
     };
 }
        public override void SetCommandParameter(string name, string value)
        {
            WSBinaryCommandTypeParameter par = this.Parameters.FirstOrDefault(x => (x.Name ?? "").Equals(name, StringComparison.OrdinalIgnoreCase));

            if (par == null)
            {
                throw new NotSupportedException();
            }

            par.Value = Encoding.UTF8.GetBytes(value ?? "");
        }
        public override Boolean GetCommandParameterBooleanValue(string name)
        {
            WSBinaryCommandTypeParameter par = this.Parameters.FirstOrDefault(x => (x.Name ?? "").Equals(name, StringComparison.OrdinalIgnoreCase));

            if (par == null)
            {
                return(false);
            }

            return(convertToBoolean(par.Value));
        }
 public override void CreateParameters(int count)
 {
     Parameters = new WSBinaryCommandTypeParameter[count];
 }