Hey
I looked around the Internet and don't found any answers to my question.
I use your latest controls of MyDirect.NET
Am I correct, that ther is absolutly no DesignTime generating is possible with WPF? - Like the DataSet Wizzard. If this is right, this would be a step back.... Because I would have to write my whole Selects, Inserts, Updates and Delete commands for my self?
THX
WPF & MyDirect.NET
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
Hey
When I try to use DataSet Wizzard, I get
1) "Important Information" - That there is no Form selected.
2) I can only choose TableAdapter and no DataAdapter
When I create a DataSet by doing the following Steps:
Right click in the Application Folder & Add an existing item.
Choose the DataSet & Drag/Drop from the Server Explorer, than a DataSet (also with a TableAdapter) will be created, but there is no TableAdapter in the CodeSection of the WPF (for example in the Loaded_Event)
THX
When I try to use DataSet Wizzard, I get
1) "Important Information" - That there is no Form selected.
2) I can only choose TableAdapter and no DataAdapter
When I create a DataSet by doing the following Steps:
Right click in the Application Folder & Add an existing item.
Choose the DataSet & Drag/Drop from the Server Explorer, than a DataSet (also with a TableAdapter) will be created, but there is no TableAdapter in the CodeSection of the WPF (for example in the Loaded_Event)
THX
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
Hello
1) MyDirect .NET DataSet wizard is not designed to be used with WPF.
It's not possible to put an instance of a MyDirect .NET DataSet on a WPF form.
Thus the wizard shows the warning message.
2) This is a bug of MyDirect .NET in WPF project. If you drag-and-drop a table from the Server Explorer and then save the project, a DataSet designer.cs file will be removed by the IDE.
Unfortunately, the fix for the bug won't be included in the coming build.
As a temporary solution, you can generate a DataSet from a database and do not drag-and-drop tables from the Solution Explorer.
Regards,
Alexey.
1) MyDirect .NET DataSet wizard is not designed to be used with WPF.
It's not possible to put an instance of a MyDirect .NET DataSet on a WPF form.
Thus the wizard shows the warning message.
2) This is a bug of MyDirect .NET in WPF project. If you drag-and-drop a table from the Server Explorer and then save the project, a DataSet designer.cs file will be removed by the IDE.
Unfortunately, the fix for the bug won't be included in the coming build.
As a temporary solution, you can generate a DataSet from a database and do not drag-and-drop tables from the Solution Explorer.
Regards,
Alexey.
Hi,
I am just trying dotConnect for MySQL but still can't find a way to use the wizad. Does the bug you have mentionned has been addressed ? Or do yo still recommand to not use WPF with dotConnect for MySQL ?
Thanks
Zakh
I am just trying dotConnect for MySQL but still can't find a way to use the wizad. Does the bug you have mentionned has been addressed ? Or do yo still recommand to not use WPF with dotConnect for MySQL ?
Thanks
Zakh
Alexey.mdr wrote:Hello
1) MyDirect .NET DataSet wizard is not designed to be used with WPF.
It's not possible to put an instance of a MyDirect .NET DataSet on a WPF form.
Thus the wizard shows the warning message.
2) This is a bug of MyDirect .NET in WPF project. If you drag-and-drop a table from the Server Explorer and then save the project, a DataSet designer.cs file will be removed by the IDE.
Unfortunately, the fix for the bug won't be included in the coming build.
As a temporary solution, you can generate a DataSet from a database and do not drag-and-drop tables from the Solution Explorer.
Regards,
Alexey.
You can use both ways of adding DataSet:
- the Tools > MySQL > DataSet Wizard menu of VS (Devart code generation, recommended)
- the right click context menu on the project in Solution Explorer > Add > New Item > DataSet (MS code generation).
The generated DataSets can be used only in run-time (no design time support for WPF Applications).
- the Tools > MySQL > DataSet Wizard menu of VS (Devart code generation, recommended)
- the right click context menu on the project in Solution Explorer > Add > New Item > DataSet (MS code generation).
The generated DataSets can be used only in run-time (no design time support for WPF Applications).