Monthly Archives: December 2011

EF: Why Include method is an anti-pattern IMHO? Conclusion

First, I admit that Anti-pattern word was excessive but I see so many catastrophic performances in my audits where developers use Include method. I presented you a very « special » way to realize Include. If you use Include ONLY … Continue reading

Posted in 7671, 7674 | Leave a comment

EF: Why Include method is an anti-pattern IMHO? 3/3

I will continue on my sample with Contoso. I won’t use a Repository and I will directly querying my DB on my ViewModel. The main reason is because it is easier for demo and because the main topic is the … Continue reading

Posted in 7671, 7674 | 2 Comments

EF: Why Include method is an anti-pattern IMHO even with many to one navigation properties? 2/3

In my yesterday post, I explained why I think Include method is an anti-pattern. Darrel commented that the issue was because I use Include with one to many navigation property on many side. In the sample, I have only one … Continue reading

Posted in 7671, 7674 | 5 Comments

EF: Why Include method is an anti-pattern IMHO?

On different session I saw, eager loading with Include method is presented as a good pattern. However, IMHO, it’s an anti-pattern. That’s right, Include method like lazy loading is very easy to use. But performance with these is often very … Continue reading

Posted in 7671, 7674 | 2 Comments