Your
CreateInsertCommand
method requires a parameter of type
MySqlConnection
. It looks like you have one hanging about:
qmConnection.Open();
MySqlCommand cmd = ncf.CreateInsertCommand(qmConnection);
Depending on the implementation of that method, you might not need to set the
cmd.Connection
property on the following line.