views:

491

answers:

3

When i see Update(),Fill() method of DataAdapter object I always think Is DataAdapter use facade pattern ?

It looks like behind the scenes It will create Command object, Connection object and execute it for us.

Or DataAdapter use Adapter pattern because it is adapter between Dataset and Comamand object ,Connection object ?

+1  A: 

I think you could perhaps think of it like the Repository pattern, just that it focuses on data connections. Its not really an adapter because its not facilitating a communication mechanism between command and dataset - its actually manipulating and creating its own commands for its own purposes.

DarkwingDuck
+2  A: 

Not everything is a GoF design pattern.

Scott Weinstein
A: 

The Facade and Adapter patterns are exactly the same. The only difference is the name of the pattern.

omouse
Nope - Facade defines a new interface, whereas Adapter uses an old interface. Adapter makes two existing interfaces work together as opposed to defining an entirely new one.
David Relihan