Import postre function to model

Import postre function to model

Postby 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-functions-in-entity-developer.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!
concware
 
Posts: 14
Joined: Thu 09 Jan 2014 21:51

Re: Import postre function to model

Postby Shalex » Thu 19 Mar 2015 11:14

Shalex
Devart Team
 
Posts: 7774
Joined: Thu 14 Aug 2008 12:44

Re: Import postre function to model

Postby 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-functions-in-entity-developer.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!
concware
 
Posts: 14
Joined: Thu 09 Jan 2014 21:51

Re: Import postre function to model

Postby Shalex » Fri 20 Mar 2015 18:29

Shalex
Devart Team
 
Posts: 7774
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for PostgreSQL