title: breeze.js one to many
body: <p>I'm currently building an SPA with Web API and knockout etc. So far i worte my own simple datacontext and it worked pretty well. 
  The I bumped in to breeze and thought it might be worth a try. especially I hoped to get a simpler approach on navigation between the entities...</p>
  
  <p>to load a entities or a single entity with breeze worked fine. Working with navigation properties seems not to work. The navigation property is always empty, even though it's a one to many relationship. </p>
  
  <p>Here is my model (simplified):</p>
  
  <pre><code>public class WorkdayHours
  {
      public int Id { get; set; }
  
      public bool IsWorkDay { get; set; }
      ...
      public Byte WeekDay { get; set; }
  }
  
  public class Service
  {
      public int Id { get; set; }
      public string DisplayName { get; set; }
      public virtual ICollection&lt;WorkdayHours&gt; BookableDays { get; set; }
  }
  public class Employee
  {
      public int Id { get; set; }
      public string DisplayName { get; set; }
      public virtual ICollection&lt;WorkdayHours&gt; BookableDays { get; set; }
  }
  public class Shop
  {
      public int Id { get; set; }
      public string DisplayName { get; set; }
      public virtual ICollection&lt;WorkdayHours&gt; BookableDays { get; set; }
  }
  </code></pre>
  
  <p>Then I fetch the entity service ind my SPA as follow:</p>
  
  <pre><code>var query = EntityQuery
              .from('Services')   
              .where('id', 'eq', serviceId)
              .expand('BookableDays'); 
  </code></pre>
  
  <p>As when teh query is executed I get as result the requested service entity with all the data except the bookableDay property is always an empty array.
  When I check the Json answer I see that also the workdayHours are transmitted and breeze even calls my defined ctors for this entities. However they are not linked to the bookableDays property itself.</p>
  
  <p>When checking the genrated DB model, EF generated foreignkeys for service, employee and shop in workdayHours as expected.</p>
  
  <p>Is breeze not capable with having several optional foreignkeys?</p>
  
  <p>Suggestion and ideas highly apprechiated.</p>