Adding postgresql function in Devart Entity Model -



Adding postgresql function in Devart Entity Model -

i'm trying import postgresql function in devart entity model, want homecoming "custom" table, can't working

i define function this:

create or replace function "getjournalentriesbyvoucherid"(bigint) returns setof record $body$ select je."journalentryid" je."amount", je."entrytext", "journalentries" je je."fk_voucher"=$1 $body$ language sql volatile strict cost 100 rows 1000; alter function getjournalentriesbyvoucherid(bigint) owner sqluser;

and used steps in post #2 in http://www.devart.com/forums/viewtopic.php?p=71252 error message

the info reader incompatible specified model.entity1. fellow member of type, journalentryid, not have corresponding column in info reader same name"

i've had improve luck using out variables set-returning stored procedures. don't know if help in case, might seek it. don't know if changes way function works or way it's defined...

create or replace function "getjournalentriesbyvoucherid"(bigint, journalentryid out datatype, amount out int, entrytext out varchar, ) returns setof record $body$ ....

function postgresql devart

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -