O'Reilly logo

ASP.NET MVC with Entity Framework and CSS by Lee Naylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Lee Naylor 2016

Lee Naylor, ASP.NET MVC with Entity Framework and CSS , 10.1007/978-1-4842-2137-2_6

6. Managing Product Images: Many-to-Many Relationships

Lee Naylor

(1)Newton-le-Willows, Merseyside, UK

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.

Note

If you want to follow along with the code in this chapter, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required