0

I am trying to get data that are returned from an EntityQuery

public EntityQuery<Product> GetProductsQuery()

and I am using an ObservableCollection to store them

var query = ctx.GetProductsQuery();
        ctx.Load(query, op =>
                             {
                                 var data = op.Entities;
                                 ProductList = new ObservableCollection<Product>(op.Entities);

                                 return;
                             }, null);

but after this code, the ProductList is still empty

user970012
  • 106
  • 1
  • 9

1 Answers1

0

Here are a couple of links hope they shed more light on your issue. They describe how to load data from RIA serives into ObservableCollections

Loading WCF RIA Services Query results to an ObservableCollection

Loading Data from RIA Services

Community
  • 1
  • 1
Anas Karkoukli
  • 1,342
  • 8
  • 13