Entity Framework Duplicate type name within an assembly (6.1.0)

前端 未结 10 1731
臣服心动
臣服心动 2020-12-29 01:41

I am not sure what is going on but I keep getting the following exception when doing a query. \"Duplicate type name within an assembly.\" I have not been able to find a solu

10条回答
  •  借酒劲吻你
    2020-12-29 02:22

    Had same issue that has taken hours yesterday to get rid of. Using EF 6.1.0, error on executing linq to entities query similar as above. My solution was to stop IIS Express, clean solution , uninstall EF from all projects in solution, close VS2012, delete all packages folders/files within solution, then restart VS2012, add EF 6.1.0 where needed, compile, error disappeared.

提交回复
热议问题