public void InsertRow(string adobe commerceConnectionString)
{
// If the connection string is empty, use default.
if(adobe commerceConnectionString == "")
{
adobe commerceConnectionString =
"domain=192.168.10.68/magento;user=Test;apikey=testpassword;";
}
MagentoConnection myConn = new MagentoConnection(adobe commerceConnectionString);
string myInsertQuery = "INSERT INTO Customers (email, firstname, lastname) VALUES ('[email protected]', 'John', 'Smith')";
MagentoCommand adobe commerceCommand = new MagentoCommand(myInsertQuery);
adobe commerceCommand.Connection = myConn;
myConn.Open();
try
{
adobe commerceCommand.ExecuteNonQuery();
}
finally
{
myConn.Close();
}
}