INSERT INTO DEPT VALUES (20,'RESEARCH','DALLAS') INSERT INTO DEPT VALUES (10,'ACCOUNTING','NEW YORK') How do I call postgres functions returning list of records in Devart Entity Model. IEnumerable taxtype=cls.fn_getalltaxreturns() I define above function in my class "EdmFunction" asĭd8degrlj74h2fEntities context = new Dd8degrlj74h2fEntities() ĬreateQuery("_getalltaxreturns()")Īnd in web api controller I call above function as I use Entity Framework with Database-first approach, so my edml file I have imported this function. I have function in Database with the name "fn_getalltaxreturns" whose return type is table(projid int, taxid, intger,name character). I am using Devart Entity Model in my web API/MVC application with Postgres Database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |