79464134

Date: 2025-02-24 15:53:21
Score: 1.5
Natty:
Report link

This produced the results I needed: -

var data = await _context.Books.Include(i => i.Genre)
    .GroupBy(b => b.Genre)
    .Select(g => new { name = g.Key, id = g.Key.Id, 
     description = g.Key.Description, 
     count = g.Count() })
    .ToListAsync(); 
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: D.Man