开发者

Problem with include property based on Abstract Entity (EF 4.1)

the LoadProperty is good alternative for Include method... Problem with Eager Loading Nested Navigation Based on Abstract Entity (EF CTP5)

But I can't do it in my Repository because i haven't context, I just have IDbSet. Think you it's bad idea ? Should I have the DbContext instead of IDbSet ? Or an other alternative is possible ? (My problem is similar to the re开发者_StackOverflowferenced link) Thanks


Use DbContext in repository. You can need it for much more operations and because repository is already dependent on EF there is no reason to hide context from it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜