Menu

Store Data in IList Using Domain Services

1. First declare IList variable like

     public List<City> city;

2. Second call domain service Function (“GetCitiesQuery”) like

  LoadOperation ldop = context.Load<City>(context.GetCitiesQuery(), CallbackCity, null);

3. End the last create Call Back Method

 private void CallbackCity(LoadOperation<City> lo)
 {
     //Set result in IList object
     city = lo.Entities.ToList();
  }

No comments

Leave a Reply


× 2 = 6

Categories