标签: c# winforms entity-framework entity-framework-ctp5 ef-code-first
我想使用Repository和Unit of Work模式构建windosform应用程序。 大多数现有示例使用ObjectContext,但我使用DbContext。 我怎么能这样做?
答案 0 :(得分:0)
这适用于网络,但可以轻松更改获胜表单:Entity Framework 4 CTP 4 / CTP 5 Generic Repository Pattern and Unit Testable