You just need to convert the stored function into a stored procedure in SQL. Although the Entity Framework defines stored procedures as functions or lists of stored functions in stored procedures, stored functions are not compatible with the Entity Framework. You can "Update the model from the database ..." and add stored procedures, then right-click and add "Import functions ..."
Helio source
share