Page 1 of 1

WPF & MyDirect.NET

Posted: Mon 16 Jun 2008 14:53
by Zero-G.
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

Posted: Tue 17 Jun 2008 11:37
by Alexey.mdr
Hello,

Generally speaking, WPF itself has quite poor design-time data access support.
There should be no problem with using MyDirect .NET DataSet wizard though.
Do you experience any difficulties with it?

Regards,
Alexey.

Posted: Tue 17 Jun 2008 11:59
by Zero-G.
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

Posted: Wed 18 Jun 2008 14:56
by Alexey.mdr
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.

Posted: Tue 29 Nov 2011 04:16
by zakhounet
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

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.

Posted: Tue 29 Nov 2011 08:37
by Shalex
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).

Posted: Thu 01 Dec 2011 11:10
by Skinner
Hi there. I am very grateful for this post - explains so much.
So it's really helpful in my work.