C
C#•3y ago
Sernik

Await Linq Expression

Where can I await this to convert IEnumerable<Task<EmployeeView>> to IEnumerable<Employee>?
8 Replies
Sernik
SernikOP•3y ago
this is not working
Sernik
SernikOP•3y ago
Sernik
SernikOP•3y ago
and this is also not working
Sernik
SernikOP•3y ago
canton7
canton7•3y ago
await Task.WhenAll(employees.Select(async x => new ....))
Sernik
SernikOP•3y ago
Thanks!
Jayy
Jayy•3y ago
This is a horribly inefficient way to do that i think, depending on ur schema
canton7
canton7•3y ago
Forget N+1, this is more like 3N+1? 😛
Want results from more Discord servers?
Add your server