I've added a function in my database and I wanted it to be callable in my code. For stored procedures I've right clicked on the SP and selected Add Function Import in Model Browser to achieve this, but this option is not available for my function. What can I do to import the function?
Asked
Active
Viewed 5,574 times
5

Sachin Kainth
- 45,256
- 81
- 201
- 304
-
Did you update your model from the database after adding the stored procedure? – Pawel Jun 25 '12 at 17:42
1 Answers
6
Database functions are not available for Function import. Function import works only with stored procedures. You must manually create stub function and mark it with EdmFunction
attribute for database function available in your model.

Ladislav Mrnka
- 360,892
- 59
- 660
- 670