problem calling the Stored procedure using ExecuteStoreQuery
Posted: Wed 28 Mar 2012 10:09
Hi,
I am using EF 4.1 code first approach (Silver light 5).
I am facing the following issue while calling the stored procedure from the domain service.
ORA-00900: invalid SQL statement
Following the stored procedure:
Following is the code in the Domain service.
Please help.
Regards,
SivaPrasad.B[/code]
I am using EF 4.1 code first approach (Silver light 5).
I am facing the following issue while calling the stored procedure from the domain service.
ORA-00900: invalid SQL statement
Following the stored procedure:
Code: Select all
create or replace package types
as
type cursorType is ref cursor;
end;
/
create or replace procedure GetLookupData( p_cursor in out types.cursorType )
as
begin
open p_cursor for SELECT 1 as Id, 'siva' as Name from tbl;
end;
/
Code: Select all
public List GetMyclass()
{
List result = null;
string SQLQuery = "exec Schema.GetLookupData";
result = _context.ExecuteStoreQuery(SQLQuery).AsQueryable().ToList();
return result;
}
Regards,
SivaPrasad.B[/code]