Return parents with null children using C# EF Core .Include
问题 Our goal is to query a database, using Entity Framework Core and the .Include(...) extension method to return a collection of objects that have a child, where some of the children will be null. We have a table Projects with a C# model Project and a table Locations with a C# model Location . Each Project has a one or zero Location objects and the objects look like this: public class Project { public string LocationId { get; set; } public Location Location { get; set; } } public class Location