Skip to content

Instantly share code, notes, and snippets.

@chsami
Created February 4, 2019 18:19
Show Gist options
  • Save chsami/d44767bdd4e15481c592782c9dc0b1f5 to your computer and use it in GitHub Desktop.
Save chsami/d44767bdd4e15481c592782c9dc0b1f5 to your computer and use it in GitHub Desktop.
var parents = await _context.Set<Parent>()
.Include(m => (m as Child1).Property1)
Include(m => (m as Child2).Property1)
.ToListAsync();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment