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

Code First EF : executing stored procedure

$
0
0

I am getting this error message:
The data reader has more than one field. Multiple fields are not valid for EDM primitive or enumeration types

The stored procedure takes three parameters, two of them being varchar and the last being int

All the parameters have values, when I execute stored procedure manually with the same values it ran successfully.

var output = Context.DbQuerySingle<string>(query, sqlParams.ToArray());


Viewing all articles
Browse latest Browse all 1698

Trending Articles



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