Is it possible to pass a stored procedure to a public MySqlDataAdapter (MySqlCommand) constructor? If so, how?

    1 answer 1

    Specify the name of the stored procedure in the CommandText property of the MySqlCommand object.

    MySqlCommand myCommand = new MySqlCommand(); myCommand.CommandText = "myStoredProcedure"; myCommand.CommandType = CommandType.StoredProcedure;