In my previous blog post I described the way you can implement Composite pattern using Entity Framework Code First.
The sample uses EFCodeFirst CTP 5 which suffers from a minor bug related to the composite relationship.
Microsoft just released EF 4.1 RC which fixes the issue. Now, you can implement your composite pattern in a clean fashion.
You can find the fixed composite pattern sample here.