VS2013 Debugger + Entity Framework: “runtime has refused to evaluate the expression”, crashes

前端 未结 5 1411
小鲜肉
小鲜肉 2020-12-29 19:04

I\'m experiencing a lot of problems with Entity Framework 6.0.1 in the VS2013 Ultimate debugger when debugging into unit tests against code that\'s hitting a live SQL Server

5条回答
  •  时光取名叫无心
    2020-12-29 19:30

    There may be a problem regarding debugging if there are any entity with Virtual entities inside. We had this problem when trying to debug at entities inside Ef scope. Entity Framework then try to catch the state of the virtial entities.

    We got a better result while viewing the entities outside db scope. This way EF is not involved while watching the entities values.

提交回复
热议问题