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
(1)Newton-le-Willows, Merseyside, UK