title: ef core may to many update with extra filed
body: <p>My mode class:</p>
  <pre><code>public class AccountCustomer
  {    
          public bool IsMain { get; set; }
          public int AccountId { get; set; }
          public Account Account { get; set; }
  
          public int CustomerId { get; set; }
          public Customer Customer { get; set; } 
  }
  
  public class Account
  {    
         
          public int Id { get; set; }
           public strig No{ get; set; }
          ..other fields
         public ICollection&lt;AccountCustomer&gt; AccCustomer { get; set; } = new List&lt;AccountCustomer&gt;();
  }
  
  public class Customer
  {    
         
          public int Id { get; set; }
           public strig Name{ get; set; }
          ..other fields
      public ICollection&lt;AccountCustomer&gt; AccCustomer { get; set; } = new List&lt;AccountCustomer&gt;();
  }
  </code></pre>
  <p>I found soluton here and i have implemented same later i found that it is for without extra column</p>
  <p><a href="https://stackoverflow.com/a/50525650/7273263">Many to many ef core updaate</a></p>
  <p>Please let meknow how to do update... Am using latest ef 5 preview</p>
  <p>My code :</p>
  <pre><code>_context.Set&lt;AccountCustomer&gt;().UpdateLinks(ac =&gt; ac.AccountId, account.Id,
                  ac =&gt; ac.CustomerId, account.AccCustomer .Select(ac =&gt; ac.CustomerId));
  </code></pre>