I’m currently going through my first experience with EF converting a Linq to SQL project to a EF project using .NET 4.
In Linq to SQL I was able to import stored procedures and set their return types to an entity but it didn’t matter if the procedure returned every field defined in the entity.
It appears that in EF you can’t do this unless I’m missing something.
I keep getting the following exception:
The data reader is incompatible with the specified 'MyEntityClass'. A member of the type, 'MyEntityProperty', does not have a corresponding column in the data reader with the same name.
I hope I don’t have to define a bunch of complex types for all my procedures, what a pain.
If this is the case, why is this?
Scott