Note: The code in this post is based on the VS 2010 Beta 2, and changes can be made until it hits RTM. In my previous post I wrote about how I have implemented the MemberRepository and prepare it for using Dependency injection of an ObjectContext etc...