May 07, 2020 09:54 PM|DA924|LINK
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.
A relationship between the two table records in a relational database such as MS SQL Server has to exist in the database tables. How else are you to know that a Contact record for an Employee belongs to the Employee?
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
This is basic database administration that you should know and understand.
Are you familiar with the concepts of a relational database?
I have a very limited knowledge as I am still teaching myself.
You should have some basic database administration knowledge for a relational database before you try to program against one, like MS SQL Server..
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.
Yes you are correct in some of it. But you are using ADO.NET Entity Framework Code First approach and not MVC Code first there is no such element called MVC code first.
You should understand the basic purpose of MVC a UI design pattern.
In general, you should understand and know the basics of the technologies you're trying to use before you try to program with them.