xamarin - Simple.OData.Client: expand related entities -


i've pcl xamarin.forms project , trying expand related entities of parent table using simple.odata.client. when try enumerate returned object, execution fails. code

    async task getdata()     {         v4adapter.reference();          odataclient client =new odataclient("https://myservice.net/odata/");          ienumerable<articoli> articoli = await client             .for<articoli>()             .filter(x => x.codart == "123")             .expand(x => x.magazzini)             .findentriesasync();          foreach (var in articoli)  //*** here execution stops ***         {             var d = an.descr;         }    } 

may there better way read data returned, don't know how.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -