-1

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?

FosterZ
  • 3,863
  • 6
  • 38
  • 62
  • 2
    http://stackoverflow.com/questions/244706/learning-implementing-design-patterns-for-newbies, http://stackoverflow.com/questions/1673841/examples-of-gof-design-patterns, http://stackoverflow.com/questions/449731/design-patterns-to-avoid, http://stackoverflow.com/questions/105049/what-are-the-best-design-patterns-books-you-have-read, http://stackoverflow.com/questions/49974/what-design-patterns-do-you-use-most-often – JoseK Nov 11 '10 at 08:50
  • 2
    Please try not to write like you talk. Your question seems very confused. Have you tried looking some alternatives up yourself? – Björn Pollex Nov 11 '10 at 09:34
  • ya i search'd on google, i found singleton and Factory method etc on wikipedia but these are not alternative to `Repository pattern` – FosterZ Nov 11 '10 at 09:38
  • There are many strong opinions about singletons. Many of those opinions boil down to "They're bad, and just glorified globals." You should at least consider that argument. – kyoryu Nov 11 '10 at 09:40
  • There are many patterns, do you want us to list all of them with practical examples? Martin Fowler's Pattern of Enterprise Application Architecture already has many patterns. – Buhake Sindi Nov 11 '10 at 10:14

3 Answers3

2

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:

however other pattern repositories may include other options.

Michael Lloyd Lee mlk
  • 14,561
  • 3
  • 44
  • 81
-1

GOF patterns a basically categorized into 4, which are creational pattern, behavioural parttern and structural pattern.

ovdan
  • 1
-2

There are 23 different known design patterns, and they can be separated into three categories by their purpose: Creational, Structural, and Behavioral.

Different design patterns

Read more in this article I wrote: JavaScript Design Patterns: Creational

cigien
  • 57,834
  • 11
  • 73
  • 112
Sean Amarasinghe
  • 638
  • 1
  • 6
  • 8
  • 1
    When linking to your own site or content (or content that you are affiliated with), you [must disclose your affiliation _in the answer_](/help/promotion) in order for it not to be considered spam. Having the same text in your username as the URL or mentioning it in your profile is not considered sufficient disclosure under Stack Exchange policy. – cigien Dec 19 '21 at 01:55