BigcommerceCommand Constructor(String,BigcommerceConnection)
Initializes a new instance of the
BigcommerceCommand class with the text of the query and a %% object.
The following example creates a
BigcommerceCommand and sets some of its properties.
|
|---|
public void CreateCommand()
{
BigcommerceConnection bigcommerceConnection = new BigcommerceConnection(
"Server=https://bigcommerce-store.mybigcommerce.com/api/v2/;User Id=User;Authentication Token=qweASDzcx1234567890rtyuiqweASDzcx1234567;");
string mySelectQuery = "SELECT * FROM customers";
BigcommerceCommand bigcommerceCommand = new BigcommerceCommand(mySelectQuery, bigcommerceConnection);
bigcommerceCommand.FetchSize = 100;
} |
|
|---|
Public Sub CreateCommand()
Dim bigcommerceConnection As New BigcommerceConnection( _
"Server=https://bigcommerce-store.mybigcommerce.com/api/v2/;User Id=User;Authentication Token=qweASDzcx1234567890rtyuiqweASDzcx1234567;")
Dim mySelectQuery As String = _
"SELECT * FROM customers"
Dim bigcommerceCommand As New BigcommerceCommand(mySelectQuery, bigcommerceConnection)
bigcommerceCommand.FetchSize = 100
End Sub |