Categories
c# entity-framework sql

How to eager load with Include() only if not null?

I am trying to do:

var abc = Context.PersonSet.Include(p=>p.Child).ToList();

But not all Persons have a Child. So I get:

Type Error
I would like to get all Persons, and if the Child is not null, I want to Include it. It would be also ok to Include Child as null.