CREATE OR REPLACE PACKAGE johns_test_pkg AS
PROCEDURE test(some_parameter IN NUMBER,
success_id OUT NUMBER);
PROCEDURE test_no_out_parameter(some_parameter IN NUMBER);
PROCEDURE test_no_in_parameter(success_id OUT NUMBER);
END johns_test_pkg;
/
CREATE OR REPLACE PACKAGE BODY johns_test_pkg AS
--
PROCEDURE test(some_parameter IN NUMBER,
success_id OUT NUMBER)
IS
v_app_user_session_id INTEGER;
BEGIN
v_app_user_session_id := 1 + some_parameter;
success_id := v_app_user_session_id;
END;
--
PROCEDURE test_no_out_parameter(some_parameter IN NUMBER)
IS
v_app_user_session_id INTEGER;
BEGIN
v_app_user_session_id := 1 + some_parameter;
END;
--
PROCEDURE test_no_in_parameter(success_id OUT NUMBER)
IS
v_app_user_session_id INTEGER;
BEGIN
v_app_user_session_id := 1 + 10;
success_id := v_app_user_session_id;
END;
END johns_test_pkg;
/
Given the above simple Oracle package with three procedures within. I have tried to add these procedures to my model using Entity Framework 5 with no avail. I have been able to add a few Oracle procedures that are not in packages.
I have been reading about this and some other questions are similar how-to-call-oracle-function-with-return-value-using-linq-to-entities and read on from the selected answer. The person states that IN OUT parameters or OUT parameters should work, but none of my three were imported. I would have expected that test_no_in_parameter procedure would get loaded?
Is it possible to load a procedure under a package?