title: Many to Many relation using fluent api EF Core 5
body: <p>I suppose I have the two entities with many to many relationships, and i am going to use fluent api to resolve this relationship</p>
  <pre><code>public class Author
  {
      public int AuthorId { get; set; }
      public string Name { get; set; }
      public ICollection&lt;Book&gt; Books { get; set; }
  }
  
  public class Book
  {
      public int BookId { get; set; }
      public string Title { get; set; }
      public ICollection&lt;Author&gt; Authors { get; set; }
  }
  
  protected override void OnModelCreating(ModelBuilder modelBuilder)
  {  
     //Book
      modelBuilder.Entity&lt;Book&gt;().HasKey(x =&gt; x.BookId);
      modelBuilder.Entity&lt;Book&gt;().Property(x =&gt; x.Title).IsRequired();
  
      //Author
      modelBuilder.Entity&lt;Author&gt;().HasKey(x =&gt; x.AuthorId);
      modelBuilder.Entity&lt;Author&gt;().Property(x =&gt; x.Name).IsRequired();
  
      //many to many relationship
      modelBuilder.Entity&lt;Book&gt;()
                  .HasMany(x =&gt; x.Authors)
                  .WithMany(x =&gt; x.Books);
  }
  </code></pre>
  <p>Using ef core 5 we dont need to create a new entity.
  The problem is in my database now i have a table with the name</p>
  <blockquote>
  <p>AuthorBook</p>
  </blockquote>
  <p>with two columns</p>
  <blockquote>
  <p>AuthorsAuthorId and  BooksBookId.</p>
  </blockquote>
  <p>How can change the name of the new table and the name of two columns?
  Also is the right way to resolve this relationship?</p>
  <pre><code>modelBuilder.Entity&lt;Book&gt;()
                      .HasMany(x =&gt; x.Authors)
                      .WithMany(x =&gt; x.Books);
  </code></pre>