Abstract
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.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Lee Naylor
About this chapter
Cite this chapter
Naylor, L. (2016). Creating Views, Controllers, and a Database from Model Classes. In: ASP.NET MVC with Entity Framework and CSS . Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2137-2_2
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2137-2_2
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2136-5
Online ISBN: 978-1-4842-2137-2
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books