Cannot implicitly convert type 'System.Collections.Generic.List<>' to 'System.Collections.Generic.IEnumerable'

asp.net-mvc c# entity-framework entity-framework-core

Accepted Answer

Simply alter this:

Select(x => new { x.Access })

With This:

Select(x => x.Access)

For this reason,new ensures that your query returns anIEnumerable Anonymous types, but you need anIEnumerable of Strings .

1
4/17/2020 5:17:24 PM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow