cdemott33
asked on
ASP.NET MVC - Code First using Existing Database
I am new to ASP.NET MVC 5 and have questions regarding implementation of Code First using an Existing Database.
1. What folder should I add the "ADO.NET Entity Data Model" to? Should I add it to the "Models" folder or some other folder? I have several tables in my existing database and I don't believe the root project folder is the best folder to store all these classes.
2. Is there a 1 to 1 relationship between the Model and existing Table? In other words, should each column in my Table have a matching property in a corresponding Model?
3. If not what is the best practice in designing models with existing database table structures.
Thank you in advance for you help!
1. What folder should I add the "ADO.NET Entity Data Model" to? Should I add it to the "Models" folder or some other folder? I have several tables in my existing database and I don't believe the root project folder is the best folder to store all these classes.
2. Is there a 1 to 1 relationship between the Model and existing Table? In other words, should each column in my Table have a matching property in a corresponding Model?
3. If not what is the best practice in designing models with existing database table structures.
Thank you in advance for you help!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER