db.ExecuteScalar<string>("exec P_GetCode @0,@1,@2,@3,@4,@5",);
using (var db = new Database("test"))
{
SqlParameter[] para = {
new SqlParameter("@m",SqlDbType.NVarChar),
new SqlParameter("@v",SqlDbType.NVarChar),
new SqlParameter("@o",SqlDbType.Int)
};
para[0].SqlValue = m;
para[1].SqlValue = c;
para[2].Direction = ParameterDirection.Output;
db.Execute(" EXEC test @0,@1,@2 OUTPUT", para);
o = int.Parse(para[2].Value.ToString());
}