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.

Advertisements

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: