Reputation: 2473
I'm using the code-first approach and have made a decision to not support lazing loading for my entities. So to help clarify my understanding, in order for EF to utilize lazy loading, ALL properties (scalar and navigation) must be designated as virtual? Does the same hold true for change tracking (ALL properties) ?
Thanks!
Upvotes: 1
Views: 143
Reputation: 364279
Lazy loading needs all navigation properties virtual and dynamic change tracking needs all mapped non navigation properties virtual. These two sets are disjunctive.
Upvotes: 1