实体框架CTP5存储库+ winform的工作单元

时间:2011-03-15 13:55:47

标签: c# winforms entity-framework entity-framework-ctp5 ef-code-first

我想使用Repository和Unit of Work模式构建windosform应用程序。 大多数现有示例使用ObjectContext,但我使用DbContext。 我怎么能这样做?

1 个答案:

答案 0 :(得分:0)

这适用于网络,但可以轻松更改获胜表单:Entity Framework 4 CTP 4 / CTP 5 Generic Repository Pattern and Unit Testable