Dataadapter vs tableadapater

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

What is the difference between dataadapter vs tableadpater? When is one
preferred over other?

Many Thanks

Regards
 
The dataAdapter is the base for the tableAdapter.

The tableAdapter is not a real Net class, it is generated using the
DataAdapter.

You are free to use both of them, there is no advantage in speed or
whatever, some like the way the Table Adapter works other the DataAdapter.

It is like the my namespace in VB which also some persons like and other
dislike.

Cor
 
Hi

What is the difference between dataadapter vs tableadpater? When is one
preferred over other?

Cor has mentioned some of this, so check out his post, as well.

DataAdapter is the actual Framework class. TableAdapters are generated from
code you drag and drop onto a DataSet (or otherwise manipulate by adding
them from the palette or right click menu).

In general, the DataAdapter is preferred if you are coding yourself. You
will make a custom class that acts like a TableAdapter that inherits from
DataAdapter. TableAdapters are preferred when you drag and drop on a
DataSet.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Back
Top