Avoid using DbSet queries ToList()/ToArray()/ToDictionary() in foreach clause | CAST Appmarq