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 ...

Get Entity Framework 4 in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.