Where is the relationship between Employee and EmployeeContactDetail? I have not created one as I don't want a dropdown list in the Employee Create/Edit View
and I am not sure what relationship to have between the two classes where you don't have a dropdown list.
What ties a detail record to the parent record when the records are persisted to the database? I have no idea how to answer this question
Are you familiar with the concepts of a relational database? I have a very limited knowledge as I am still teaching myself.
Are you use Entity Framework? I am using Microsoft Visual Studio - ASP.NET Web Application (.NET Framework) MVC Code-First and then I let MVC create the CRUD
functions which generates the code.
Member
2 Points
6 Posts
Re: Join two pages to view data
May 07, 2020 03:58 PM|KyleO33|LINK
Hi DA924,
Thank-you for your response.
In answer to your questions;
Where is the relationship between Employee and EmployeeContactDetail? I have not created one as I don't want a dropdown list in the Employee Create/Edit View and I am not sure what relationship to have between the two classes where you don't have a dropdown list.
What ties a detail record to the parent record when the records are persisted to the database? I have no idea how to answer this question
Are you familiar with the concepts of a relational database? I have a very limited knowledge as I am still teaching myself.
Are you use Entity Framework? I am using Microsoft Visual Studio - ASP.NET Web Application (.NET Framework) MVC Code-First and then I let MVC create the CRUD functions which generates the code.
Regards,
Kyle