QuickBooksCommand Constructor(String,QuickBooksConnection)
Initializes a new instance of the
QuickBooksCommand class with the text of the query and a %% object.
The following example creates a
QuickBooksCommand and sets some of its properties.
public void CreateCommand()
{
QuickBooksConnection quickBooksConnection = new QuickBooksConnection(
"Company Id=1440905870;Refresh Token=AB11590759756UCO8O6CpRQcAMP00sIANafgS8Y4RN10rpLJNM;Token Server=file://D:\\temp\\QuickBooksToken.txt");
string mySelectQuery = "SELECT * FROM Customer";
QuickBooksCommand quickBooksCommand = new QuickBooksCommand(mySelectQuery, quickBooksConnection);
quickBooksCommand.FetchSize = 100;
}
Public Sub CreateCommand()
Dim quickBooksConnection As New QuickBooksConnection( _
"Company Id=1440905870;Refresh Token=AB11590759756UCO8O6CpRQcAMP00sIANafgS8Y4RN10rpLJNM;Token Server=file://D:\\temp\\QuickBooksToken.txt")
Dim mySelectQuery As String = _
"SELECT * FROM Customer"
Dim quickBooksCommand As New QuickBooksCommand(mySelectQuery, quickBooksConnection)
quickBooksCommand.FetchSize = 100
End Sub