Search code examples
c#winformsentity-frameworkentity-framework-ctp5ef-code-first

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?


Solution

  • 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