I have a function defined inside an Oracle package:
CREATE OR REPLACE PACKAGE BODY TESTUSER.TESTPKG as FUNCTION testfunc(n IN NUMBER) RETURN NUMBER as begin
I managed to call the package function like this:
command.CommandText = @"begin :ret := ILMTEST.testpkg.testfunc(:n); end;"; command.CommandType = System.Data.CommandType.Text;