In this chapter we will jump right into the project and add some basic model classes for products and categories. We will use these to create a database using Entity Framework Code First. I’ll show you how to set up a database context class, specify a connection string, create a database from your code, and add new views and controllers to manage and display the product and category data.
© Lee Naylor 2016
Lee Naylor, ASP.NET MVC with Entity Framework and CSS , 10.1007/978-1-4842-2137-2_2
2. Creating Views, Controllers, and a Database from Model Classes
Lee Naylor1
(1)Newton-le-Willows, Merseyside, UK
Get ASP.NET MVC with Entity Framework and CSS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.