SugarCommand Constructor(String,SugarConnection)
Initializes a new instance of the
SugarCommand class with the text of the query and a %% object.
The following example creates a
SugarCommand and sets some of its properties.
public void CreateCommand()
{
SugarConnection sugarConnection = new SugarConnection(
"server=https://your_company.sugaropencloud.eu;user id=admin;password=AmFFA4ZryM;");
string mySelectQuery = "SELECT * FROM Campaigns";
SugarCommand sugarCommand = new SugarCommand(mySelectQuery, sugarConnection);
sugarCommand.FetchSize = 100;
}
Public Sub CreateCommand()
Dim sugarConnection As New SugarConnection( _
"server=https://your_company.sugaropencloud.eu;user id=admin;password=AmFFA4ZryM;")
Dim mySelectQuery As String = _
"SELECT * FROM Campaigns"
Dim sugarCommand As New SugarCommand(mySelectQuery, sugarConnection)
sugarCommand.FetchSize = 100
End Sub