An error occurred while executing the command definition. See the inner exception for details

前端 未结 9 1703
攒了一身酷
攒了一身酷 2020-12-15 03:07

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         


        
相关标签:
9条回答
  • 2020-12-15 03:31

    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.

    0 讨论(0)
  • 2020-12-15 03:35

    Look at the Inner Exception and find out what object might have caused the problem, you might have changed its name.

    0 讨论(0)
  • 2020-12-15 03:45

    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.

    0 讨论(0)
提交回复
热议问题