I searched for a good answer for 2 days and I still did not find an easy step-by-step answer to this question.
As you can see, the point is that I need to have a connection between 'boeking' and 'aspnetuser'. 1 aspnetuser can have multiple 'boeking'.
This is the screenshot of mssql: enter image description here
What should I write, in what place to have this connection? Thank you sincerely for taking the time and effort to help me.
This is my boeking class:
public partial class Boeking
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public Boeking()
{
this.HotelBoekings = new HashSet<HotelBoeking>();
this.Tickets = new HashSet<Ticket>();
}
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<HotelBoeking> HotelBoekings { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Ticket> Tickets { get; set; }
}