On the clien side I have the following assignement of objects list to a datagrid:
var customerContext = new RiaTestCustomDomainContext();
CustomerGrid.ItemsSource = customerContext.Customers;
customerContext.Load(customerContext.GetCustomersQuery());
It works good, but I woudl like to have the same list of objects in a separate collection and use it for other objects population.
When I tried to push customerContext.Customers into List I've got an error:
Cannot implicitly convert type 'System.Windows.Ria.EntitySet' to 'System.Collections.ObjectModel.ObservableCollection'
Here is a code that I've tried to compile:
var customerContext = new RiaTestCustomDomainContext();
ObservableCollection<Customer> customers = customerContext.Customers;
Could you please advise how can I achieve data into List<> collection?
Thanks.