• English (United States)
    • العربية (مصر)
    • Deutsch (Deutschland)
    • Español (España, alfabetización internacional)
    • français (France)
    • हिंदी (भारत)
    • italiano (Italia)
    • 日本語 (日本)
    • 한국어 (대한민국)
    • Nederlands (Nederland)
    • polski (Polska)
    • русский (Россия)
    • ไทย (ไทย)
    • Türkçe (Türkiye)
    • Tiếng Việt (Việt Nam)
    • 中文(中华人民共和国)
    • 中文(香港特別行政區)
DotNetAge - Mvc & jQuery CMS

Tag : Design Pattern

The Repository Pattern with EF code first & Dependeny Injection in ASP.NET MVC3

avatar
Ray

In these days i started use EF code first and think about how could i take the advantage form it for my recent project. My project is base on MVC3 and there are some challenges to continue update this project. At that time i must finish my job in a very s...


  • 7/5/2011 10:10:57 AM
  • Votes (9)
  • Reads
    (9568)
  • Comments
    (0)

Template Method

avatar
Ray

Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.


  • 6/17/2011 5:30:59 AM
  • Votes (0)
  • Reads
    (1452)
  • Comments
    (0)

Visitor

avatar
Ray

Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.


  • 6/17/2011 5:25:41 AM
  • Votes (0)
  • Reads
    (1376)
  • Comments
    (0)

Strategy

avatar
Ray

Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.


  • 6/17/2011 5:18:45 AM
  • Votes (0)
  • Reads
    (1332)
  • Comments
    (0)

State

avatar
Ray

Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.


  • 6/17/2011 5:07:47 AM
  • Votes (0)
  • Reads
    (1210)
  • Comments
    (0)

Observer

avatar
Ray

Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.


  • 6/17/2011 5:01:28 AM
  • Votes (1)
  • Reads
    (1357)
  • Comments
    (0)

Memento

avatar
Ray

Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later.


  • 6/17/2011 4:52:12 AM
  • Votes (0)
  • Reads
    (1275)
  • Comments
    (0)

Mediator

avatar
Ray

Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.


  • 6/17/2011 4:45:22 AM
  • Votes (0)
  • Reads
    (1167)
  • Comments
    (0)

Interpreter

avatar
Ray

Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.


  • 6/17/2011 4:03:51 AM
  • Votes (0)
  • Reads
    (1002)
  • Comments
    (0)

Chain of Responsibility

avatar
Ray

Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.


  • 6/17/2011 3:57:50 AM
  • Votes (0)
  • Reads
    (817)
  • Comments
    (0)

Command

avatar
Ray

Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.


  • 6/17/2011 3:51:35 AM
  • Votes (0)
  • Reads
    (864)
  • Comments
    (0)

Proxy password

avatar
Ray

Provide a surrogate or placeholder for another object to control access to it.


  • 6/17/2011 3:45:34 AM
  • Votes (0)
  • Reads
    (767)
  • Comments
    (0)

Flyweight

avatar
Ray

Use sharing to support large numbers of fine-grained objects efficiently.


  • 6/17/2011 3:38:42 AM
  • Votes (0)
  • Reads
    (764)
  • Comments
    (0)

Facade

avatar
Ray

Provide a unified interface to a set of interfaces in a subsystem. Façade defines a higher-level interface that makes the subsystem easier to use.


  • 6/17/2011 3:30:23 AM
  • Votes (0)
  • Reads
    (810)
  • Comments
    (0)

Decorator

avatar
Ray

Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.


  • 6/17/2011 3:25:54 AM
  • Votes (0)
  • Reads
    (784)
  • Comments
    (0)

Composite

avatar
Ray

Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.


  • 6/17/2011 3:06:36 AM
  • Votes (0)
  • Reads
    (1084)
  • Comments
    (0)

Bridge

avatar
Ray

Decouple an abstraction from its implementation so that the two can vary independently.


  • 6/17/2011 2:59:38 AM
  • Votes (0)
  • Reads
    (805)
  • Comments
    (0)

Adapter

avatar
Ray

Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.


  • 6/17/2011 2:50:07 AM
  • Votes (0)
  • Reads
    (756)
  • Comments
    (0)

Prototype

avatar
Ray

Specify the kind of objects to create using a prototypical instance, and create new objects by copying this prototype.


  • 6/17/2011 2:44:02 AM
  • Votes (0)
  • Reads
    (703)
  • Comments
    (0)

Singleton

avatar
Ray

Ensure a class has only one instance and provide a global point of access to it.


  • 6/17/2011 2:31:48 AM
  • Votes (0)
  • Reads
    (766)
  • Comments
    (0)

Valid XHTML 1.0!