hey guys, recently i worked on Repository Pattern
in aspnet MVC and i was just wondering that,i mean how many different patterns are out there (i.e开发者_如何学运维 alternative to Repository Pattern)? please i need small explanation of each Patterns available..? and among all those Patterns what you'll recommend me to go for?
I've not heard of the Repository Pattern, so it is not part of the GoFs initial set. A quick google shows it to be part of Martin Fowlers Patterns of Enterprise Application Architecture (a good book I seam to recall, but way to many patterns to keep in ones head). Looking over the index for PoEAA and the Repository Pattern lives in the Object-Relational Metadata Mapping Patterns subset. The alternatives specified in PoEAA are:
- Metadata Mapping
- Query Object
however other pattern repositories may include other options.
GOF patterns a basically categorized into 4, which are creational pattern, behavioural parttern and structural pattern.
There are 23 different known design patterns, and they can be separated into three categories by their purpose: Creational, Structural, and Behavioral.
Read more in this article I wrote: JavaScript Design Patterns: Creational
精彩评论