Dataadapter vs tableadapater

J

John

Hi

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

Many Thanks

Regards
 
C

Cor Ligthert[MVP]

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
 
G

Gregory A. Beamer

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! |
*******************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top