Skip to main content

Managing Product Images: Many-to-Many Relationships

  • Chapter
  • First Online:
  • 3018 Accesses

Abstract

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.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Lee Naylor

About this chapter

Cite this chapter

Naylor, L. (2016). Managing Product Images: Many-to-Many Relationships. In: ASP.NET MVC with Entity Framework and CSS . Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2137-2_6

Download citation

Publish with us

Policies and ethics