O'Reilly logo

Entity Framework 4 in Action by Daniele Bochicchio, Marco De Sanctis, Stefano Mostarda

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

Chapter 7. Persisting objects into the database

 

This chapter covers
  • Persisting modified objects into the database
  • Persisting complex object graphs into the database
  • Persisting with foreign-key and independent associations

 

Now that you know how to handle entity lifecycles, you’re ready to take the next step: persisting modifications made to objects into the database.

In this chapter, we’ll discuss how to insert, update, and delete entities in both connected and disconnected scenarios. We’ll cover single-object updates, such as a customer, and complex graph updates, such as an order and its details. By the end of this chapter, you’ll be able to manage updates through Entity Framework.

 

Note

In this chapter, we won’t be discussing topics ...

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