TableAdapter info
-
Hello everyone: I need to get some information about TableAdapters programatically. When I create a new instance of my DataSet like this:
DataSet ds = new DataSet(); ds.ReadXmlSchema(MyDataSetFile);
I can retrieve the information about DataTables but I dont see a way to retrieve information about TableAdapter. Any Ideas how to do it? In an MSDN[^] article, it says to get to TableAdapter we will need a new instance of the TableAdapter and then it gives this example:NorthwindDataSet northwindDataSet = new NorthwindDataSet(); NorthwindDataSetTableAdapters.CustomersTableAdapter customersTableAdapter = new NorthwindDataSetTableAdapters.CustomersTableAdapter(); customersTableAdapter.Fill(northwindDataSet.Customers);
In my case I dont know which DataSet I will be working with untill runtime. Please help. Thanks. Regards, Robert -
Hello everyone: I need to get some information about TableAdapters programatically. When I create a new instance of my DataSet like this:
DataSet ds = new DataSet(); ds.ReadXmlSchema(MyDataSetFile);
I can retrieve the information about DataTables but I dont see a way to retrieve information about TableAdapter. Any Ideas how to do it? In an MSDN[^] article, it says to get to TableAdapter we will need a new instance of the TableAdapter and then it gives this example:NorthwindDataSet northwindDataSet = new NorthwindDataSet(); NorthwindDataSetTableAdapters.CustomersTableAdapter customersTableAdapter = new NorthwindDataSetTableAdapters.CustomersTableAdapter(); customersTableAdapter.Fill(northwindDataSet.Customers);
In my case I dont know which DataSet I will be working with untill runtime. Please help. Thanks. Regards, RobertTableAdapters are designer-generated components.
only two letters away from being an asset
-
Hello everyone: I need to get some information about TableAdapters programatically. When I create a new instance of my DataSet like this:
DataSet ds = new DataSet(); ds.ReadXmlSchema(MyDataSetFile);
I can retrieve the information about DataTables but I dont see a way to retrieve information about TableAdapter. Any Ideas how to do it? In an MSDN[^] article, it says to get to TableAdapter we will need a new instance of the TableAdapter and then it gives this example:NorthwindDataSet northwindDataSet = new NorthwindDataSet(); NorthwindDataSetTableAdapters.CustomersTableAdapter customersTableAdapter = new NorthwindDataSetTableAdapters.CustomersTableAdapter(); customersTableAdapter.Fill(northwindDataSet.Customers);
In my case I dont know which DataSet I will be working with untill runtime. Please help. Thanks. Regards, Robert