Page 1 of 1

Import postre function to model

Posted: Thu 19 Mar 2015 09:07
by concware
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!

Re: Import postre function to model

Posted: Thu 19 Mar 2015 11:14
by Shalex

Re: Import postre function to model

Posted: Thu 19 Mar 2015 12:45
by concware
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!

Re: Import postre function to model

Posted: Fri 20 Mar 2015 18:29
by Shalex