Change Navigation Properties as ObservableCollection<T>

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
figueiredorj
Posts: 41
Joined: Fri 12 Apr 2013 19:05

Change Navigation Properties as ObservableCollection<T>

Post by figueiredorj » Tue 28 Jul 2015 09:00

Hi,

Is there anyone that has successfully changed navigation properties to be ObservableCollection<T>?
I am doing MvvM and I need to trigger the RaisePropertyChanged and for current DbContext I have failed on doing this.

Any help appretiated.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Change Navigation Properties as ObservableCollection<T>

Post by MariiaI » Tue 28 Jul 2015 12:29

We have contacted you by e-mail.

figueiredorj
Posts: 41
Joined: Fri 12 Apr 2013 19:05

Re: Change Navigation Properties as ObservableCollection<T>

Post by figueiredorj » Tue 28 Jul 2015 15:56

Hi,
just replied you by email with a demo project referring the unexpected behavior of the ObservableListSource<T>.

Thanks

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Change Navigation Properties as ObservableCollection<T>

Post by MariiaI » Wed 29 Jul 2015 09:19

Thank you for the test project. We will investigate it and contact you by e-mail as soon as any results are available.

figueiredorj
Posts: 41
Joined: Fri 12 Apr 2013 19:05

Re: Change Navigation Properties as ObservableCollection<T>

Post by figueiredorj » Mon 31 Aug 2015 12:04

Hi,

thanks for the update on implemented feature of Use ObservableCollection<T>;

I was able to use it once.. and noticed that when using that I had to customize template for having the usiong collections;

Besides that..
When it was released I had tested it...
However I am creating a new model with dbcontext but unable to find the feature of using observablecollection; is there something I need to do before? Thanks

figueiredorj
Posts: 41
Joined: Fri 12 Apr 2013 19:05

Re: Change Navigation Properties as ObservableCollection<T>

Post by figueiredorj » Mon 31 Aug 2015 17:09

Ignore my previous comment when related to not finding where to specify to use ObservableCollection<T>... it is shown by default on dbcontext.. just was using older version on current machine.

Yet it is missing on template to add using for Collections...

Cheers!

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Change Navigation Properties as ObservableCollection<T>

Post by MariiaI » Tue 01 Sep 2015 05:46

If we understood you correctly, the issue was resolved.

JIC: to be able to use ObservableCollection<T> you need to open your *.edml model, navigate to Tools > Entity Developer > Model Explorer > expand the Templates node and set the Use ObservableCollection property of the DbContext template to True; save the model to regenerate the code.

If you have any further questions, feel free to contact us.

Post Reply