i got a error in mvc 4
Error 1 Cannot convert lambda expression to type 'string' because it is not a delegate type
what is this error
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Feb 17, 2015, 7:35 AM
Hi,
I think there is isuue with EF referance...
try..
public ActionResult Index()
{
var tbl_student = db.tbl_Student.Include("tbl_User");
return View(tbl_student.ToList());
}
hope this will help you.
Prasham SabadraPosted Feb 17, 2015, 5:23 AM
I didnt tried but have a look once at http://forums.asp.net/t/1817464.aspx?Cannot+convert+lambda+expression+to+type+string+because+it+is+not+a+delegate+type
Posted Feb 17, 2015, 5:21 AM