WinForms & VB.Net & Databinding, ICollection vs. ObservableColection

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Ansgar
Posts: 10
Joined: Tue 05 Mar 2013 07:25

WinForms & VB.Net & Databinding, ICollection vs. ObservableColection

Post by Ansgar » Tue 23 Apr 2013 15:37

Hello all,

I want to use databinding with VB.Net, WinForms and EF (DBContext).

Actually there is a Problem to show the Data of the Navigation Properties.
Details you can read here:
http://entityframework.codeplex.com/wik ... %2c%202012
under "Database First WinForms data binding".

The recommend to implement a own T4 template for databinding with winforms.

Actually I changed in the T4 template the type of the navigation property. I replaced
ICollection throug ObservableCollection(of T) and I importet System.Collections.ObjectModel.

With this change databinding seems to work fine.

Now my Questions:

-Is that the right way to use databinding with vb.net and WinForm and what are the
disadvantages of this solution?

-Why doesn't DevArt provide a T4 Template for Datebinding with WinForms. Do you
think that this is a possible option?

Best regards and thank you for every answer.
Ansgar

Shalex
Devart Team
Posts: 8072
Joined: Thu 14 Aug 2008 12:44

Re: WinForms & VB.Net & Databinding, ICollection vs. ObservableColection

Post by Shalex » Mon 29 Apr 2013 13:38

Ansgar wrote:Is that the right way to use databinding with vb.net and WinForm and what are the disadvantages of this solution?
Your solution seems to be OK.
Ansgar wrote:Why doesn't DevArt provide a T4 Template for Datebinding with WinForms. Do you think that this is a possible option?
We will investigate the possibility of creating the corresponding T4 template.

Ansgar
Posts: 10
Joined: Tue 05 Mar 2013 07:25

Re: WinForms & VB.Net & Databinding, ICollection vs. ObservableColection

Post by Ansgar » Mon 06 May 2013 05:34

Hi Shalex,

thank you for your answer. Firstly I will create my own template.

It would be fine if I can change it through a template created by DevArt later.

Regards, Ansgar

Ansgar
Posts: 10
Joined: Tue 05 Mar 2013 07:25

Re: WinForms & VB.Net & Databinding, ICollection vs. ObservableColection

Post by Ansgar » Fri 29 Aug 2014 13:45

Hello,

is there anything new on this topic?

Regards, Ansgar

Shalex
Devart Team
Posts: 8072
Joined: Thu 14 Aug 2008 12:44

Re: WinForms & VB.Net & Databinding, ICollection vs. ObservableColection

Post by Shalex » Thu 04 Sep 2014 07:01

The Enable WinForms Data Binding property of the DbContext template is implemented. We will notify you when the corresponding build of dotConnect for Oracle is available for download.

Shalex
Devart Team
Posts: 8072
Joined: Thu 14 Aug 2008 12:44

Re: WinForms & VB.Net & Databinding, ICollection vs. ObservableColection

Post by Shalex » Thu 04 Sep 2014 16:41

New build of dotConnect for Oracle 8.4.239 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/oracle/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=1&t=30327.

Post Reply