title: entity framework - many to many relationship
body: <p>Hi I try use Many to Many relationship with EF Fluent API. I have 2 POCO classes.</p>
  
  <pre><code>public class Project
  {
      public int ProjectId { get; set; }
  
      public virtual ICollection&lt;Author&gt; Authors { get; set; }
  
      public Project()
      {
          Authors = new List&lt;Author&gt;();
      }
  }
  
  public class Author
  {
      public int AuthorId { get; set; }
  
      public virtual ICollection&lt;Project&gt; Projects { get; set; }
  
      public Author()
      {
          Projects = new List&lt;Project&gt;();
      }
  }
  </code></pre>
  
  <p>And I map many to many relationship with this part of code:</p>
  
  <pre><code>        ////MANY TO MANY 
          modelBuilder.Entity&lt;Project&gt;()
              .HasMany&lt;Author&gt;(a =&gt; a.Authors)
              .WithMany(p =&gt; p.Projects)
              .Map(m =&gt;
                       {
                           m.ToTable("ProjectAuthors");
                           m.MapLeftKey("ProjectId");
                           m.MapRightKey("AuthorId");
                       });
  </code></pre>
  
  <p>This created table ProjectsAuthors in DB. It is my first attempt with this case of relationship mapping.</p>
  
  <p>If I omitted this mapping it created table AuthorProject with similar schema. It is correct bevahior?</p>