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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-5789-9_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-5788-2
Online ISBN: 978-1-4302-5789-9
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)