0

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 referenced link) Thanks

Community
  • 1
  • 1
rad
  • 1,857
  • 1
  • 20
  • 30

1 Answers1

2

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.

Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670