PROBLEM USING DATASET DESIGNER
Posted: Wed 04 Nov 2009 19:27
I am trying to design a dataset using Devart dataset designer but I have a problem. The steps I follow are:
1. From Visual Studio 2008 I choose the Tools Menu/PostgreSQL/Dataset Wizard..., I get the welcome window and click Next.
2. I select a New dataset ang give it a name (ClientOrder). The checkbox "Use provider-specific code generator when creating type DataSet" is checked by default. I click Next.
3. The "Choose database objects" window is shown so I choose a connection and select only one table for testing purposes. i do not change any other option and click Next.
4. I get the "Setup individual data tables" window, click on the table shown in the "Data tables" section and click the "Configure Commands" button. At this moment I get the following error message:
"Object reference not set to an instance of an object." I continue anyway clicking Next.
5. The "Configure column mappings" window is shown, I leave everything as is and click Next.
6. The "Configure data relations" window appears and click Generate.
The dataset is generated but I need to specify a parameter to the query, that is why I want to Configure Commands in step 4 but I receive an error.
7. So, I right click the table adapter generated and select the Configure... option and the "TableAdapter Configuration Wizard is shown" with a box to type/modify the SQL statement so I write the following:
select * from restaurant.menu where menu.id=:prmid and click Next.
8. I leave the names of the methods unchanged, click Next and get the Wizard Results as follows:
"Parameter prmid is missing."
Please let me know what I am doing wrond in step 4 and step 8.
I am using Visual Studio 2008 and have dotConnect for PostgreSQL v4.0.12 installed.
NOTE:
I read the dotConnect documentation and I see the following:
"The behavior of Wizard slightly differs depending on whether you had some Windows Forms or Web Forms Designer focused when the DataSet Wizard was invoked."
If I am developing a web application please let me know how to "focus" the web forms designer because when starting the Devart Dataset Wizard there is a messge saying that "No Form Designer selected. If you want to use some existing components close all open documents, open required Form Designer, focus on it and then try agin.".
Regards,
Jorge Maldonado
1. From Visual Studio 2008 I choose the Tools Menu/PostgreSQL/Dataset Wizard..., I get the welcome window and click Next.
2. I select a New dataset ang give it a name (ClientOrder). The checkbox "Use provider-specific code generator when creating type DataSet" is checked by default. I click Next.
3. The "Choose database objects" window is shown so I choose a connection and select only one table for testing purposes. i do not change any other option and click Next.
4. I get the "Setup individual data tables" window, click on the table shown in the "Data tables" section and click the "Configure Commands" button. At this moment I get the following error message:
"Object reference not set to an instance of an object." I continue anyway clicking Next.
5. The "Configure column mappings" window is shown, I leave everything as is and click Next.
6. The "Configure data relations" window appears and click Generate.
The dataset is generated but I need to specify a parameter to the query, that is why I want to Configure Commands in step 4 but I receive an error.
7. So, I right click the table adapter generated and select the Configure... option and the "TableAdapter Configuration Wizard is shown" with a box to type/modify the SQL statement so I write the following:
select * from restaurant.menu where menu.id=:prmid and click Next.
8. I leave the names of the methods unchanged, click Next and get the Wizard Results as follows:
"Parameter prmid is missing."
Please let me know what I am doing wrond in step 4 and step 8.
I am using Visual Studio 2008 and have dotConnect for PostgreSQL v4.0.12 installed.
NOTE:
I read the dotConnect documentation and I see the following:
"The behavior of Wizard slightly differs depending on whether you had some Windows Forms or Web Forms Designer focused when the DataSet Wizard was invoked."
If I am developing a web application please let me know how to "focus" the web forms designer because when starting the Devart Dataset Wizard there is a messge saying that "No Form Designer selected. If you want to use some existing components close all open documents, open required Form Designer, focus on it and then try agin.".
Regards,
Jorge Maldonado