Managing Product Images: Many-to-Many Relationships

  • Lee Naylor


This chapter covers how to create a new entity to manage images, how to upload image files using HTML forms and associate them with products using a many-to-many relationship, and how to save images to the filesystem. This chapter also introduces more complex error handling to add custom errors to the model in order to display them back to the user. The product images used in the chapter to seed the database can be found in Chapter’s 6 code download available from the Apress web site.


Error Message Visual Studio Partial View Product Image View Model 
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.

Copyright information

© Lee Naylor 2016

Authors and Affiliations

  • Lee Naylor
    • 1
  1. 1.Newton-le-WillowsUK

Personalised recommendations