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?
Asked
Active
Viewed 2,322 times
1

Ladislav Mrnka
- 360,892
- 59
- 660
- 670

Majid Shamkhani
- 849
- 2
- 8
- 28
-
It is the same. You just use `DbContext` instead of `ObjectContext`, `DbSet` instead of `ObjectSet`, etc. – Ladislav Mrnka Mar 15 '11 at 14:04
1 Answers
0
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