WPF & MyDirect.NET

WPF & MyDirect.NET

Postby 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
Zero-G.
 
Posts: 390
Joined: Sat 09 Dec 2006 12:20

Postby 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.
Alexey.mdr
 
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Postby 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
Zero-G.
 
Posts: 390
Joined: Sat 09 Dec 2006 12:20

Postby 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.
Alexey.mdr
 
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Postby 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.
zakhounet
 
Posts: 1
Joined: Sun 27 Nov 2011 02:15

Postby 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).
Shalex
Devart Team
 
Posts: 7616
Joined: Thu 14 Aug 2008 12:44

Postby 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.
Skinner
 
Posts: 1
Joined: Wed 30 Nov 2011 10:09


Return to dotConnect for MySQL