Dataset Wizard doen't create table adapter
Dataset Wizard doen't create table adapter
hi, I've a problem with the Dataset Wizard, well I'm not sure if is a problem but maybe someone can helpe figure out.
Ok, so in the Dataset Wizard I setup an individual data table manually that means I clicked on the "Add" button, then I wrote the SQL query:
select * from estudiantes
INNER JOIN personas
ON personas.ID = estudiantes.ID
then I save the changes, I mean Next, Next, Next...so when I open the dataset it has no tableadapter, so there is no select method to choose from in the objectdatasource object...is this an issue or im doing it wrong, I really need that query to be executed and of course I need to see the data...please help
thanks in advance
Ok, so in the Dataset Wizard I setup an individual data table manually that means I clicked on the "Add" button, then I wrote the SQL query:
select * from estudiantes
INNER JOIN personas
ON personas.ID = estudiantes.ID
then I save the changes, I mean Next, Next, Next...so when I open the dataset it has no tableadapter, so there is no select method to choose from in the objectdatasource object...is this an issue or im doing it wrong, I really need that query to be executed and of course I need to see the data...please help
thanks in advance
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
There is a number of ways to retrieve the data using typed DataSets. For example, you can fill the DataSet generated by the Fill() method and then use its tables as data sources, e.g., bind them to the grids.
As for TableAdapters, you can generate them using Microsoft TableAdapter Configuration Wizard in the DataSet Designer. At the moment, there is no support for the TableAdapter class generation while using Devart DataSet Wizard. We plan to implement it, but cannot provide any timeframe.
As for TableAdapters, you can generate them using Microsoft TableAdapter Configuration Wizard in the DataSet Designer. At the moment, there is no support for the TableAdapter class generation while using Devart DataSet Wizard. We plan to implement it, but cannot provide any timeframe.
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
Assume that you have created a typed DataSet PgDataSet. You can use its instance as follows:
where GridView1 is a grid control on your web page.
Also, I've sent a sample project to the email you have provided in your forum profile.
Code: Select all
PgDataSet pgDataSet1 = new PgDataSet();
pgDataSet1.Fill();
GridView1.DataSource = pgDataSet1.Tables[0];
GridView1.DataBind();
Also, I've sent a sample project to the email you have provided in your forum profile.
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
Please ensure that you properly set the PgSqlConnection objects up in PgDataSet.xsd and PgDataSet.Designer.cs. Also, the sample needs the table DEPT to be created in your PostgreSQL database. It can be done with this script:
See also tables.sql script in the samples for dotConnect for PostgreSQL.
Code: Select all
CREATE TABLE DEPT (
DEPTNO INT PRIMARY KEY,
DNAME VARCHAR(14),
LOC VARCHAR(13)
);