title: How to add foreign key in AspNetUser Asp.net MVC
body: <p>I searched for a good answer for 2 days and I still did not find an easy step-by-step answer to this question.</p>
  
  <p>As you can see, the point is that I need to have a connection between 'boeking' and 'aspnetuser'. 1 aspnetuser can have multiple 'boeking'. </p>
  
  <p>This is the screenshot of mssql:
  <a href="https://i.stack.imgur.com/5jnKW.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>What should I write, in what place to have this connection? 
  Thank you sincerely for taking the time and effort to help me.</p>
  
  <p>This is my boeking class:</p>
  
  <pre><code>public partial class Boeking
  {
      [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
      public Boeking()
      {
          this.HotelBoekings = new HashSet&lt;HotelBoeking&gt;();
          this.Tickets = new HashSet&lt;Ticket&gt;();
      }
  
      public string NetUserId { get; set; }
      public int BoekingID { get; set; }
      public int TrajectID { get; set; }
      public System.DateTime DatumBoeking { get; set; }
      public System.DateTime VertrekDatum { get; set; }
      public int ReservatieNr { get; set; }
  
      public virtual Traject Traject { get; set; }
      [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
      public virtual ICollection&lt;HotelBoeking&gt; HotelBoekings { get; set; }
      [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
      public virtual ICollection&lt;Ticket&gt; Tickets { get; set; }
  }
  </code></pre>