简体   繁体   中英

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?

这是针对Web的,但是对于获胜形式可以很容易地进行更改: Entity Framework 4 CTP 4 / CTP 5通用存储库模式和可测试单元

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM