Home  /  Questions  /  Question



59   95.0
Mar 28, 2010


Why does DoFactory not reference the Repository pattern on their site?

I searched for the Repository pattern on the DoFactory website, but could not find a reference to this pattern. I wonder why something like this is not mentioned on this great website?

Am I missing something?



830   99.9
Mar 29, 2010
Hey Amr:

The DoFactory website documents the Gang of Four Design Patterns. There are 23 of these patterns and they have been around for quite a while (15 years or so).  Over the last decade many more Design Pattern have been 'discovered' and documented.  One of which is the Repository Pattern.

The Repository Pattern is typically used to provide a standard CRUD (Create Read Update, Delete) interface to the Service Layer. It will have methods like:

GetList<Customer>
Get<Customer>
Insert<Customer>
Update<Customer>

etc.

BTW: the Design Pattern Framework does not include the Repository Pattern either. They use a different model, i.e. a high-level Request / Response model that can be exposed as a webservice.

Anyhow, I hope this answers your question.

Dan.

 2 comments
 
I forgot to mention that the Repository Pattern will be included in the upcoming VS 2010 / .NET 4 release. --- Dan McMillan  Apr 01, 2010
 
Awesome! Really looking forward to this new release. --- Hector Sosa  Jun 05, 2010

59   95.0
Mar 29, 2010
Yes, thanks for your answer.