In C#, using the NPoco (v3.4.3), I'm trying to invoke a MySQL procedure that returns both a result set and an OUT parameter...
CREATE PROCEDURE MyProc(IN itemId INT, OUT returnCode INT)
BEGIN
...
SET returnCode = -2;
...
select * from MyTable where id = itemId;
END
I really have no clue where to start. I have found some petapoco examples but they seem to be SQL Server specific (making use of SqlParameter). There must be some noon-database specific way to accomplish this with NPoco that works with MySQL.