Entity Framework 4 Error: Unable to update the EntitySet because it has a DefiningQuery

前端 未结 4 1379
臣服心动
臣服心动 2021-01-01 19:23

Okay, here\'s the scenario. I have 3 tables. One called aspnet_Users one called Categories and a linking table called User_Categories. aspnet_Users and Categories both ha

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-01 20:15

    I encounter the same problem, and I fixed by the following link:

    • Link @ Microsoft social forum
    • Link @ StackOverflow
    • Link @ Blog of Microsoft

    I remove the section of DefiningQuery in .edmx based on the content of 3rd link. And then everything works as a charm.

提交回复
热议问题