Mapping stored procedures to functions in the EDM