title: Fluent API, many-to-many in Entity Framework Core
body: <p>I've searched stackoverflow for a proper solution on generating a <strong>many-to-many</strong> relationship, using EF Core, Code first and Fluent API.</p>
  
  <p>A simple scenario would be:</p>
  
  <pre><code>public class Person
  {
      public Person() {
          Clubs = new HashSet&lt;Club&gt;();
      }
      public int PersonId { get; set; }
      public virtual ICollection&lt;Club&gt; Clubs { get; set; }
  }
  
  public class Club
  {
      public Club() {
          Persons = new HashSet&lt;Person&gt;();
      }
      public int ClubId { get; set; }
      public virtual ICollection&lt;Person&gt; Persons { get; set; }
  }
  </code></pre>
  
  <p>Please correct me if im wrong but I could honestly not find a question that contains an elaborate explanation on how to do this using the described tools.
  Can anyone explain how this is done?</p>