In my mvc asp.net application, I am getting an error in edit function : in given code
public ActionResult Edit(int id)
{
var res = (from r in objeEnti
This occurs when you specify the different name for repository table name and database table name. Please check your table name with database and repository.
Look at the Inner Exception and find out what object might have caused the problem, you might have changed its name.
I've just run into this issue and it was because I had updated a view in my DB and not refreshed the schema in my mapping.