must declare the scalar variable '@custid' using dbcontext.Database.SqlQuery?

asp.net c# entity-framework sql

Accepted Answer

ZZZ_tmp
28
12/4/2013 9:17:41 PM

Popular Answer

Try

var results = _MiscContext.Database.SqlQuery<int>(
              "exec sp_GetStaff {0}",
              customerNumber).ToList();


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow