Skip to main content

Plain Old CLR Objects

  • Chapter
  • First Online:
Entity Framework 6 Recipes
  • 1372 Accesses

Abstract

Objects should not know how to save themselves, load themselves, or filter themselves. That’s a familiar mantra in software development, and especially in Domain Driven Development. There is a good bit of wisdom in this mantra. Having persistence knowledge bound too tightly to domain objects complicates testing, refactoring, and reuse. In ObjectContext, the classes generated by Entity Framework for model entities are heavily dependent on the plumbing of Entity Framework. For some developers, these classes know too much about the persistence mechanism, and they are too closely tied to the concerns of models and mapping. There is another option, however.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.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

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Brian Driscoll

About this chapter

Cite this chapter

Driscoll, B., Gupta, N., Vettor, R., Hirani, Z., Tenny, L. (2013). Plain Old CLR Objects. In: Entity Framework 6 Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5789-9_8

Download citation

Publish with us

Policies and ethics