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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -