The Tamir link does work, but takes an approach that the Entity Framework team no longer recommends.
Check out this tip that is closer to the right path for this. It also covers gotchas in more detail. (Disclaimer: I would say I wrote a tip!)
Hope this helps
Alex
Entity Framework Team
source share