I'm confused on why I am getting an exception when I call a stored procedure from the entity framework api. The error states:
The data reader is incompatible with the specified [Model].[SP_Result_Type].
A member of the type, [typeName], does not have a corresponding column in the data reader with the same name.
The SP in question is a SELECT command that gets values from (3) different tables and Entity Framework returns the values in a ComplexObject type. By "data reader", I guess the exception is referring to a type created by the EF API. If so, both the "data reader" and the table(s) have the correct variable names, so I don't understand the cause of this exception.
The change would probably be in the designer EF created, but I don't know what to change.