I am trying to create joins between 3 tables using MVC code first approach. My main table is the Request table. I need to be able to join these tables. The requirements is going to build a multi check list box where multiple requirements may be checked. A request may have multiple requirements... I need help with the navigational properties
public partial class Request { public int ID { get; set; } [StringLength(10)] [Display(Name = "User Name")] public string UserName { get; set; } public DateTime? RequestDate { get; set; } public int? RequestRequirementId { get; set; } }
public partial class RequestRequirement { public int ID { get; set; } public int RequestId { get; set; } public int RequirementId { get; set; } public virtual Requirement Requirement { get; set; } public virtual Request Request { get; set; } }
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst