Skip to content

Instantly share code, notes, and snippets.

View abhishekluv's full-sized avatar
🎯
Actively seeking opportunities

Abhishek Luv abhishekluv

🎯
Actively seeking opportunities
View GitHub Profile
var instances = await context.Instances
.Where(i =>
i.SubjectUuid == subjectUuid &&
i.VersionUuid == versionUuid)
.Select(i => new
{
Instance = i,
HasSubmissions = i.Submissions.Any() // using Any() to check if any submissions are there or not
})
.AsSplitQuery()