
Repository Design Pattern
Get flash to fully experience Pearltrees
The repository pattern explained and implemented | Lowendahl's Shout
The pattern documented and named “Repository” is one of the most misunderstood and misused. In this post we’ll implement the pattern in C# to achieve this simple line of code:The Repository Pattern Example in C#
Repository Pattern with Entity Framework 4.1 and Code First
Introduction A popular pattern for ORM data access is the Repository pattern. Repositories are currently very popular even in EF for the reasons below: Hide EF from upper layer Make code better testable The big disadvantage of EF is rigid architecture which can be hardly mocked, so if you want to unit test upper layer you must wrap EF somehow to allow mocking its implementation.I’m going to be talking at this evening’s Open Source .NET Exchange at Skills Matter . It’s just around the corner from Farringdon station and is ably organised by Gojko Adzic. I think there are still some places left. It’s free, but you need to register in advance. It should be great evening with some excellent speakers.
Implementing the Repository Pattern
I have watch Rob Conery’s great screencast about MVC Storefront . If you haven’t seen them, you should take a look. Really interesting, he build and app by using Agile, "TDD" etc. I have some comments about his implementation I want to share, and if you don't agree with me, it's fine, because I'm not an expert, this post is based on my own experience and knowledge ;) Feel absolutely free to criticize me, but please give suggestions about what things can be done better, and also a reason why.

