I used the Add > Function Import feature in my model's .edmx diagram by selecting a stored procedure.
It then appears in the Model browser tab as
EntityContainer:myEntities > Function Imports > MyFunction
How do I reference that function or method in my code? The propeties say it should be part of the myEntities.MyFunction
but it doesn't appear in Intellisense anywhere when I create the entities instance??
What is the return type of your function? In V1, the code for imported functions will only be generated if the return type is mapped to an Entity Type in the model.
If you wish to return a primitive type (or nothing at all), then check the work-arounds in the following thread:
This posting is provided "AS IS" with no warranties, and confers no rights.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?