System.Collections.Generic.IEnumerable' does not contain any definition for 'ToList'

前端 未结 5 2067
礼貌的吻别
礼貌的吻别 2020-12-05 09:21

Here is the problem. I am getting IEnumerable from ViewPage and when I tried it to convert List it is showing me error like:

\'System.Collection

5条回答
  •  佛祖请我去吃肉
    2020-12-05 09:49

    In my case, I had copied some code from another project that was using Automapper - took me ages to work that one out. Just had to add automapper nuget package to project.

提交回复
热议问题