SugarCommand Constructor(String)
Initializes a new instance of the
SugarCommand class with the text of the query.
The following example creates a
SugarCommand and sets some of its properties.
public void CreateSugarCommand()
{
string mySelectQuery = "SELECT * FROM Campaigns";
SugarCommand sugarCommand = new SugarCommand(mySelectQuery);
sugarCommand.FetchSize = 100;
}
Public Sub CreateSugarCommand()
Dim mySelectQuery As String = "SELECT * FROM Campaigns"
Dim sugarCommand As New SugarCommand(mySelectQuery)
sugarCommand.FetchSize = 100
End Sub