Monthly Archives: December 2009

EF: Another (better ?) way to deal with POCO entities

If you want to have POCO entities and to keep at the same time, the context features like tracking, attaching automatically relationships, Lazy loadings, EF will generate a proxy which inherits your entity classes and which adds some code to … Continue reading

Posted in 10500, 7671, 7673, 7674 | 1 Comment

Self-Tracking entities: How to reduce exchange between client and server?

Self-Tracking entities are really great for N-Tiers scenarios but we have to be careful in order to reduce exchange between client and server. Imagine the following EDM: and the following scenario: using (var context = new NorthwindClientContext()) {     var … Continue reading

Posted in 10511, 7671, 7674, 7675 | 5 Comments

EF and N-Tiers

Even if it’s really easier with Self-Tracking entities and EF4, a difficult point remains in N-Tiers scenarios. In a previous post, I explained how with T4, I can generate all my WCF service. Now, what about the client tiers? I … Continue reading

Posted in 10511, 7671, 7674, 7675 | 5 Comments