I'm new to C#. Have a question about IQueryable.
From what I understand IQueryable queries the database every time it gets called. In my case, I need to put the IQueryable inside a for each loop with more than 50k of loops, so it will be good to convert it to a list first to reduce database calls? Or is there any other good approach? Thanks