title: How to make a join table using EF core code first
body: <p>I have these three models:</p>
  
  <pre><code>public class Card
  {
      public int ID { get; set; }
      public string Name { get; set; }
      public string Class { get; set; }
      public string Image { get; set; }
  }
  
  public class Deck
  {
      public int ID {get; set;}
      public string Name {get; set;}
      public string Class {get; set;}
      public virtual ICollection&lt;DeckCard&gt; DeckCards {get; set;}
  }
  
  public class DeckCard
  {
      public int ID {get; set;}
      public int DeckID {get; set;}
      public int CardID {get; set;}
  }
  </code></pre>
  
  <p>I want to use the DeckCard model as a join table essentially.  I need to be able to populate it in my DecksController/Index view.  Can anyone give me guidance or point me in the right direction?</p>
  
  <p>Note that the Card table is a static table (I don't know if that's the correct term for it but it will be populated and unchanged with whatever cards the game currently has (it's a deck building website)).</p>