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
Post a Comment