Include parent and child in query?
<p>I have two entities with one to many relationship like this:</p>

<blockquote>
  <p>Customer 1......* Booking</p>
</blockquote>

<pre><code> public class Customer
    {
        [Key]
        public int Id { get; set; }
        public string Name { get; set; }
        public List&lt;Booking&gt; Bookings { get; set; }
    }


  public class Booking
    {
        [Key]
        public int Id { get; set; }
        public string Title{ get; set; }
        public DateTime BookingDate { get; set; }
        public int? CustomerId { get; set; }
        public Customer Customer { get; set; };

    }
</code></pre>

<p>If _context being DbContext, following two queries ended up in circular dependency.</p>

<pre><code>_context.Customers.Include(x=&gt; x.Bookings).ToList();
</code></pre>

<p>OR</p>

<pre><code>_context.Bookings.Include(x=&gt; x.Customer).ToList();
</code></pre>

<p>Question is how can we query these interdependent relationships if we have to include entity A in B's query and vice versa?</p>