Entity Framework Duplicate type name within an assembly (6.1.0)

前端 未结 10 1668
臣服心动
臣服心动 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:16

    I too was facing similar sort of issue, I fixed it by converting the result set to List i.e

    var registers = registerRepository.All.ToList().Where(a=>a.AreaLatitude.Equals(0));

    Converting the result ToList solved the issue to iterate it further.

    and solved the issue.

提交回复
热议问题