Import postre function to model

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
concware
Posts: 14
Joined: Thu 09 Jan 2014 21:51

Import postre function to model

Post by concware » Thu 19 Mar 2015 09:07

I have a .NET C# solution with an edmx model in version of Entity Framework 5.0.

I need to import a created postgre function to model, but i did not find any totorial or detailed documentation for this.

I found only that, but i do not want to store the exact sql in the model:
http://blog.devart.com/model-defined-fu ... loper.html

But, I tried to create method like this, the function is generated in the edml file, but the C# EdmFunction is not generated. I tried to create the function manually, but the queryprovider in the DbContext is unknown property.

Is the edmx and edml file is equivalent and no need to include both files to project?

Can i ask a sample .net project?

Thanks in advance!

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Import postre function to model

Post by Shalex » Thu 19 Mar 2015 11:14


concware
Posts: 14
Joined: Thu 09 Jan 2014 21:51

Re: Import postre function to model

Post by concware » Thu 19 Mar 2015 12:45

I think that not all my questions was covered in the other post.
http://blog.devart.com/model-defined-fu ... loper.html

But, I tried to create method like this, the function is generated in the edml file, but the C# EdmFunction is not generated. I tried to create the function manually, but the queryprovider in the DbContext is unknown property."
"Can i ask a sample .net project?"
Thanks in advance!

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Import postre function to model

Post by Shalex » Fri 20 Mar 2015 18:29


Post Reply