Summary

In this chapter, I have shown you how to use features of version 4.1 of the Entity Framework to add persistence to our domain model classes. We are able to do this with only minor modifications to the model classes themselves, and most importantly, the model classes are unaware of the persistence technology that is being used. We could move to a different technology with little effort, especially if the underlying data store remained a relational database.

Get Applied ASP.NET 4 in Context now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.