File new with Entity Framework 4.0 and Poco object separation

29. November 2010

I recently gave a talk on this and wanted to post the source code. The purpose of the talk is to walk through how to use EF without violating the rules of architecture that you have placed in your solution. You will need to setup Adventure Works Database on your box or have one you can connect to for this to function correctly.

This is the end point code.

http://dl.dropbox.com/u/15486441/EntityFrameworkFileNew.zip

This is the download link.

This code is the end point of using

http://visualstudiogallery.msdn.microsoft.com/en-us/23df0450-5677-4926-96cc-173d02752313

A little editing of the T4 Template and adherence to the onion architecture.

http://jeffreypalermo.com/blog/the-onion-architecture-part-1/

.NET, Data Access, Entity Framework