MagentoCommand Constructor(String,MagentoConnection)
Initializes a new instance of the
MagentoCommand class with the text of the query and a %% object.
The following example creates a
MagentoCommand and sets some of its properties.
public void CreateCommand()
{
MagentoConnection adobe commerceConnection = new MagentoConnection(
"domain=192.168.10.68/magento;user=Test;apikey=testpassword;");
string mySelectQuery = "SELECT * FROM Customers";
MagentoCommand adobe commerceCommand = new MagentoCommand(mySelectQuery, adobe commerceConnection);
adobe commerceCommand.FetchSize = 100;
}
Public Sub CreateCommand()
Dim adobe commerceConnection As New MagentoConnection( _
"domain=192.168.10.68/magento;user=Test;apikey=testpassword;")
Dim mySelectQuery As String = _
"SELECT * FROM Customers"
Dim adobe commerceCommand As New MagentoCommand(mySelectQuery, adobe commerceConnection)
adobe commerceCommand.FetchSize = 100
End Sub