I discovered recently that the current version of the Entity Framework does not generate code when you perform a function import for a stored procedure that returns a scalar result.
We did a workaround for this by coding our own function, in which we utilised a DataReader and then returned the first field in the DataReader as the result.
Are there any other possibilities?