This code is part of a data model used to create keyword records in a database.
if (_queue
.OrderByDescending(record=>record.Primary)
.GroupBy(record=>record.Term)
.Select(record=>record.First())
.Select(Create)
.Any(result=>result <= 0))
{
throw new ModelException("Failed to create keyword record.");
}
While I can understand this, I was also thinking it was a little obfuscated.
Is the intent of this code clearly readable?