Project Description

Generates a strongly-typed Object Context and POCO Entities from your EDMX file. Additionally a Repository and an abstract Unit Test for the Repository is created (with a mock for the ObjectContext and mock for the ObjectSets).

The "ADO.NET C# POCO Entity Generator" was originally developed by Microsoft.
It was forked by Rab Hallett under the name "ADO.NET Mocking Context Generator" (blogofrab.blogspot.com).

This extension is a new fork by Johannes Hoppe.

With this download you will get a complete solution:
  • all functionalities of the ADO.NET C# POCO Entity Generator, which includes:
    • a compatible ObjectContext (replaces the “Entities-Class”)
    • all entity types as POCOs (Plain Old CLR Objects)
  • as well as:
    • an Interface for the ObjectContext
    • a mock of the ObjectContext (provides access to ObjectSets)
    • a mock that implements IObjectSet (stores data)
    • a partial Repository class
    • an abstract Unit Test class
    • optional: support for Microsoft Unity
    • optional: equality members for the POCOs (Equals and GetHashCode)

Install the Visual Studio Extension:
http://visualstudiogallery.msdn.microsoft.com/en-us/d2aa9e9a-1314-4a96-8365-81771b17c597

Get startet now:
http://blog.johanneshoppe.de/2010/10/ado-net-unit-testable-repository-generator/

Read the walkthrough:
http://blog.johanneshoppe.de/2010/10/walkthrough-ado-net-unit-testable-repository-generator/

Get some more information about Unit Testing:
http://blog.johanneshoppe.de/2010/11/unit-testing-in-detail/

Download the demo solution:
http://lecture-hoppe.googlecode.com/files/WebNoteMvc_v0.5.zip

Last edited Jan 7, 2011 at 3:32 PM by JohannesHoppe, version 9