/// <summary> /// Adds a new parameter with the specified name and value. The name will be /// parsed to extract table and keyspace information (if any). The parameter type /// will be guessed from the object value. /// </summary> /// <param name="name">The name.</param> /// <param name="value">The value.</param> /// <returns>The created <see cref="CqlParameter"/>.</returns> public CqlParameter Add(string name, object value) { var parameter = new CqlParameter(name, value); Add(parameter); return(parameter); }
/// <summary> /// Adds the specified parameter. /// </summary> /// <param name="parameter">The parameter.</param> /// <returns> </returns> public int Add(CqlParameter parameter) { _parameters.Add(parameter); return(_parameters.Count - 1); }
private void SetParameter(int index, CqlParameter value) { _parameters[index] = value; }
private void SetParameter(string parameterName, CqlParameter value) { int index = GetIndex(parameterName); _parameters[index] = value; }