Entity Framework – POCO style
The entity framework, Microsoft’s current effort to bring object-relation mapping to the non open source world, is currently in version 1 release. However, one of the short comings is the lack of POCO support.
POCO, being Plain Old CLR Object, is the thought that your domain objects should not have any knowledge of persitence or infrastructure. Your domain objects, should just be worried about what they know best: interaction with your domain logic. Make sense, right? Unfortunately the Entity Framework does require some infrasture logic within your domain logic by requiring inheritance from some of the base classes.
Anyway, this limitation that is planned to be included in later releases, has some silver lining as a POCO adapter has been created for the Entity Framework, which can be found here.
No comments yet
Leave a reply