'Declaration Public Shadows Function CreateCommand() As SalesforceCommand
public new SalesforceCommand CreateCommand()
Return Value
A SalesforceCommand object.
'Declaration Public Shadows Function CreateCommand() As SalesforceCommand
public new SalesforceCommand CreateCommand()
public void CreateSalesforceCommand(string myConnString) { SalesforceConnection salesforceConnection = new SalesforceConnection(myConnString); SalesforceCommand salesforceCommand = salesforceConnection.CreateCommand(); salesforceCommand.CommandText = "INSERT INTO Account(Name) Values('New account')"; salesforceConnection.Open(); try { salesforceCommand.ExecuteNonQuery(); } finally { salesforceConnection.Close(); } }
Public Sub CreateSalesforceCommand(myConnString As String) Dim salesforceConnection As New SalesforceConnection(myConnString) Dim salesforceCommand As SalesforceCommand = salesforceConnection.CreateCommand() salesforceCommand.CommandText = "INSERT INTO Account(Name) Values('New account')" salesforceConnection.Open() Try salesforceCommand.ExecuteNonQuery() Finally salesforceConnection.Close() End Try End Sub