title: odata many-to-many relationship
body: <p>I am developing odata (4.0) service and trying to call linked entities (Controller works with books, I want to get categories). For that I created three models witch describe many-to-many relationship.</p>
  
  <pre><code>public class Book
  {
      public int BookId { get; set; }
      public string Title { get; set; }
      public virtual ICollection&lt;BookCategory&gt; BookCategories { get; set; }
  }
  
  public class Category
  {
      public int CategoryId { get; set; }
      public string CategoryName { get; set; }
      public virtual ICollection&lt;BookCategory&gt; BookCategories { get; set; }
  }
  
  public class BookCategory
  {
      public int BookId { get; set; }
      public int CategoryId { get; set; }
      public Book Book { get; set; }
      public Category Category { get; set; }
  }
  </code></pre>
  
  <p>Inside startup class I configured relationship between Book and BookCategory.</p>
  
  <pre><code>builder.EntitySet&lt;Book&gt;("Book").HasManyBinding(x =&gt; x.BookCategories, "BookCategories");
  </code></pre>
  
  <p>Well, now I can get BookCategories entries and if I expand Category from BookCategories I can get category entry. But for me I have an extra link into url - BookCategories.</p>
  
  <p>Do you know how to implement many-to-many without BookCategories, for example url should looks like this: <a href="http://ip:port/books(n)/categories" rel="nofollow noreferrer">http://ip:port/books(n)/categories</a></p>