Page 1 of 1
Change Navigation Properties as ObservableCollection<T>
Posted: Tue 28 Jul 2015 09:00
by figueiredorj
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.
Re: Change Navigation Properties as ObservableCollection<T>
Posted: Tue 28 Jul 2015 12:29
by MariiaI
We have contacted you by e-mail.
Re: Change Navigation Properties as ObservableCollection<T>
Posted: Tue 28 Jul 2015 15:56
by figueiredorj
Hi,
just replied you by email with a demo project referring the unexpected behavior of the ObservableListSource<T>.
Thanks
Re: Change Navigation Properties as ObservableCollection<T>
Posted: Wed 29 Jul 2015 09:19
by MariiaI
Thank you for the test project. We will investigate it and contact you by e-mail as soon as any results are available.
Re: Change Navigation Properties as ObservableCollection<T>
Posted: Mon 31 Aug 2015 12:04
by figueiredorj
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
Re: Change Navigation Properties as ObservableCollection<T>
Posted: Mon 31 Aug 2015 17:09
by figueiredorj
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!
Re: Change Navigation Properties as ObservableCollection<T>
Posted: Tue 01 Sep 2015 05:46
by MariiaI
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.