oracle - ORA-01722: invalid number on Entity Framework -
i'm executing stored procedure oracle db is:
procedure get_tim_user_custo(p_anomes in varchar, user_custo out sys_refcursor) begin open user_custo select id, cod_utilizador,ano_mes, to_number(desencriptar_dado(custo, (select valor tim_config parametro='cript_key'))) custo, to_number(desencriptar_dado(custo_extra, (select valor tim_config parametro='cript_key'))) custo_extra tim_user_custo substr(p_anomes, 1, 4)=substr(ano_mes, 1, 4); end get_tim_user_custo;
if execute on oracle directly returns result set well. if call stored procedure in webservice using entity framework
ora-01722: invalid number
calling:
objectresult<user_custo> aux = context.tim_functions_get_tim_user_custo(sanomes);
then throws exception, doesn't give result.
using stored procedure entity can extremely complicated thing, i've been extremely frustrated when first tried. works in entity... exept stored procedure... anyway. if 1 of these can you, realy suggest read these questions/answers below , try find way out of this, luck !
using stored procedure in entity framework
Comments
Post a Comment