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.
精彩评论