/TestableDbContextCodeGen

Visual Studio Extension for a Unit-Testable DbContext Code Generator

Primary LanguageC#

Visual Studio 2010 Extension for creating Entity Framework 4.1 (or greater) Entity model code generators.

To install the extension, simply grab the latest release from the Downloads Page, extract the Zip file, and run the extension installer.

Use the generators just like you would the existing DbContext code generators. Simply right click on your Edmx model and click Add Code Generation Item...

The code that gets created has a DbContext that is derived from a mockable interface (Unit of Work Pattern), which exposes the Entity Repositories as IDbSet<TEntity>.

Pretty simple.

See my (currently incompletely) blog entries on the subject: