Q:

Entity Framework CTP5 Repository + Unit of Work for winform

I want to build a windosform application using Repository and Unit of Work pattern.
Most of existing sample use ObjectContext but I use DbContext.
How can I do this?

A:

This is for web, but could be altered quite easily for win forms: Entity Framework 4 CTP 4 / CTP 5 Generic Repository Pattern and Unit Testable

