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
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2