I added a link to the stored procedure in my edmx file, then right-click on it and select "Create Function Import", it was added to the "Import Objects" folder in the EntityContainer in the model browser.
As I understand it, I should use it like this:
sampleEntities db = new sampleEntities();
db.SampleStoredProcedure();
but it does not appear on the db object. Is there any step that I am missing? The import of the function is set to public, has no return value, and one parameter that I can see when I expand it.
source
share