I have the following code:
var isDuplicateCategoryIds = _query.Categories .GroupBy(x => x.Id) .Any(g => g.Count() > 1);
I have t