WPF & MyDirect.NET

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

WPF & MyDirect.NET

Post by Zero-G. » Mon 16 Jun 2008 14:53

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

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Tue 17 Jun 2008 11:37

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.

Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Post by Zero-G. » Tue 17 Jun 2008 11:59

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

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Wed 18 Jun 2008 14:56

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.

zakhounet
Posts: 1
Joined: Sun 27 Nov 2011 02:15

Post by zakhounet » Tue 29 Nov 2011 04:16

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.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Tue 29 Nov 2011 08:37

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).

Skinner
Posts: 1
Joined: Wed 30 Nov 2011 10:09

Post by Skinner » Thu 01 Dec 2011 11:10

Hi there. I am very grateful for this post - explains so much.
So it's really helpful in my work.

Post Reply