I am trying to execute stored procedure from bcontext.Database.SqlQuery using EF5.
It is throwing an error must declare the scalar variable \'@custid\'<
must declare the scalar variable \'@custid\'
Try
var results = _MiscContext.Database.SqlQuery( "exec sp_GetStaff {0}", customerNumber).ToList();