dotConnect for Google BigQuery Documentation
Devart.Data.BigQuery Namespace / BigQueryCommand Class / BigQueryCommand Constructor / BigQueryCommand Constructor(String)
The text of the query.
Example

On this page
    BigQueryCommand Constructor(String)
    On this page
    Initializes a new instance of the BigQueryCommand class with the text of the query.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal commandText As String _
    )
    public BigQueryCommand( 
       string commandText
    )

    Parameters

    commandText
    The text of the query.
    Remarks
    The following table shows initial property values for an instance of BigQueryCommand.
    Properties Initial value
    CommandText commandText
    CommandTimeout 30
    CommandType System.Data.CommandType.Text
    Connection null
    Example
    The following example creates a BigQueryCommand and sets some of its properties.
    public void CreateBigQueryCommand()
    {
      string mySelectQuery = "SELECT * FROM your_project.your_dataset.employees";
      BigQueryCommand bigQueryCommand = new BigQueryCommand(mySelectQuery);
      bigQueryCommand.FetchSize = 100;
    }
    Public Sub CreateBigQueryCommand()
      Dim mySelectQuery As String = "SELECT * FROM your_project.your_dataset.employees"
      Dim bigQueryCommand As New BigQueryCommand(mySelectQuery)
      bigQueryCommand.FetchSize = 100
    End Sub
    See Also