Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

EF error when returning from Stored Procedure in EF 6.1.2

$
0
0

When I am calling a stored procedure I am seeing this error:

Additional information: The data reader is incompatible with the specified
'.sp_MySp_Result'. A member of the type, 'Column1', does not have a
corresponding column in the data reader with the same name.

This stored procedure is doing everything with the updates and all, but fails when doing the return.  I am just doing updates and not returning any records or a value or anything (that I know of). I have tried to recreate the stored procedure in EF 2 or 3 times and it keeps bring in a random column 'Column1' in the complex type property.  Why is it doing that?

I am passing in 2 true parameters and 1 output parameter, but every time 'column1' is being generated as a complex type.

If the stored procedure ONLY does updates and returns a value if successful, how can I see if something else is coming back?


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>