'Declaration Public Shadows Function CreateCommand() As MagentoCommand
public new MagentoCommand CreateCommand()
Return Value
A MagentoCommand object.
'Declaration Public Shadows Function CreateCommand() As MagentoCommand
public new MagentoCommand CreateCommand()
public void CreateMagentoCommand(string myConnString) { MagentoConnection adobe commerceConnection = new MagentoConnection(myConnString); MagentoCommand adobe commerceCommand = adobe commerceConnection.CreateCommand(); adobe commerceCommand.CommandText = "INSERT INTO Customers (email, firstname, lastname) VALUES ('[email protected]', 'John', 'Smith')"; adobe commerceConnection.Open(); try { adobe commerceCommand.ExecuteNonQuery(); } finally { adobe commerceConnection.Close(); } }
Public Sub CreateMagentoCommand(ByVal myConnString As String) Dim adobe commerceConnection As New MagentoConnection(myConnString) Dim adobe commerceCommand As MagentoCommand = adobe commerceConnection.CreateCommand() adobe commerceCommand.CommandText = "INSERT INTO Customers (email, firstname, lastname) VALUES ('[email protected]', 'John', 'Smith')" adobe commerceConnection.Open() Try adobe commerceCommand.ExecuteNonQuery() Finally adobe commerceConnection.Close() End Try End Sub