Page 1 of 1

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

Posted: Tue 23 Apr 2013 15:37
by Ansgar
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

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

Posted: Mon 29 Apr 2013 13:38
by Shalex
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.

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

Posted: Mon 06 May 2013 05:34
by Ansgar
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

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

Posted: Fri 29 Aug 2014 13:45
by Ansgar
Hello,

is there anything new on this topic?

Regards, Ansgar

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

Posted: Thu 04 Sep 2014 07:01
by Shalex
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.

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

Posted: Thu 04 Sep 2014 16:41
by Shalex
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.