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_4

4. More Advanced Data Management

Lee Naylor

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

This chapter will cover how to delete categories correctly, how to seed the database with data, how to update the database using Code First Migrations based on code changes, and how to perform data validation with custom error messages.

Note

If you want to follow along with the code in this chapter, you must either have completed Chapter 3 or download Chapter 3’s source code from www.apress.com as a starting point.

Deleting an Entity Used as a Foreign Key

So far we have updated our web site to add some useful search and filter features, and we've been able to add some ...

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