User229488726 posted
i am using EF 5
its Work fine until i add a store procedure .
when i add store procedure and get data from i have a error like
System.Data.Objects.ObjectContext System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()
my code is
public List<sp_userQuestion_Result> userQuestion(Int64 Questionid)
{
try
{
var userquestion = _db.sp_userQuestion(Questionid).ToList();
return userquestion;
}
catch (Exception ex)
{
throw ex;
}
how to solve the error