I am using EF4 within a MVC3 application and I was looking for a way to view all my contacts within a given workgroup. In the controller I specified:
var wg
If this issue is coming from a Stored Procedure, ensure that the SP is working fine.
Entity Framework will try predict the kind of return value from the Stored Procedure, and if SP is not working because of invalid Table name or column within it, it returns an Integer, and the Entity Framework creates a Conceptual Schema expecting an integer as return value instead of a table.