TableAdapter is a wrapper for DataAdapter. It’s impossible to use TableAdapters in generic way (bacause they inherit Component class). Is it possible to get the wrapped DataAdapter out of TableAdapter?
TableAdapter is a wrapper for DataAdapter. It’s impossible to use TableAdapters in generic way
Share
As Brian pointed out, a table adapter is a partial class. If you want to expose the DataAdapter you can achieve that by the following code. (assuming you have a TableAdapter class MyTableAdapter.
Alternatively, you could write some general purpose method (or extension method) that returns the private adapter using reflection. That way you wouldn’t have to “touch” every table adapter you create.