dotConnect for Google BigQuery Documentation
Devart.Data.BigQuery Namespace / BigQueryParameterCollection Class
Members Example

On this page
    BigQueryParameterCollection Class
    On this page
    Collects all parameters relevant to a BigQueryCommand as well as their respective mappings to System.Data.DataSet columns.
    Syntax
    Remarks
    The number of parameters in the collection must be equal to the number of parameter placeholders within the command text, or Google BigQuery raises an error.
    Example
    The following example adds instance of BigQueryParameter to collection.
    public void AddBigQueryParameters()
    {
      // Create bigQueryConnection and bigQueryCommand.
    
      bigQueryCommand.CommandText = "DELETE Dept WHERE DeptNo = :DeptNo";
      bigQueryCommand.Parameters.Add("DeptNo", BigQueryType.Int).Value = 50;
      bigQueryCommand.ExecuteNonQuery();
    }
    Public Sub AddBigQueryParameters()
      // Create bigQueryConnection and bigQueryCommand.
    
      bigQueryCommand.CommandText = "DELETE Dept WHERE DeptNo = :DeptNo"
      bigQueryCommand.Parameters.Add("DeptNo", BigQueryType.Int).Value = 50
      bigQueryCommand.ExecuteNonQuery()
    
    End Sub 'AddBigQueryParameters
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.Data.Common.DbParameterCollection
             Devart.Common.DbParameterBaseCollection
                Devart.Data.SqlShimParameterCollection<T>
                   Devart.Data.BigQuery.BigQueryParameterCollection

    See Also