I have a pretty simple proc defined in a package as shown below.
My question is how do I can I call this using linq and get a IQueryable back? Right now, when I drop it on the designer I get the following which, as you can see returns a system.Int32.
Any help would be great!
THanks ... Ed
Code: Select all
'''
''' There are no comments for Get_App_Role_List in the schema.
'''
_
Public Function Get_App_Role_List( Sappname As String) As System.Int32
Dim res As IExecuteResult = Me.ExecuteMethodCall(Me, CType(MethodInfo.GetCurrentMethod(), MethodInfo), Sappname)
Return CType(res.ReturnValue, System.Int32)
End Function
PROCEDURE Get_App_Role_List(sAppName IN VARCHAR2, cData OUT cOutput) IS
/* ---------------------------------------------------------------------------
Procedure: Get_App_Role_List
Developer: Ed Staffin
Date: 12/5/8
Description: GET list of roles
--------------------------------------------------------------------------- */
BEGIN
sProcName := 'Get_App_Role_List';
OPEN cData FOR
SELECT ROLE_CODE, ROLE_DESC
FROM APP_ROLE
WHERE APP_NAME = sAppName;
EXCEPTION
WHEN OTHERS THEN
BEGIN
COMMON.COMMON_PKG.Log_Error(APPNAME, USER, SQLERRM, sProcName);
RAISE_APPLICATION_ERROR(ORAERROR, 'An error has occurred. Please contact system support for resolution');
END;
END Get_App_Role_List;
Code: Select all