1

I have the following odata query:

/Places?$filter=CountryCode eq 'de'&$expand=Images($filter=IsCover eq true)

The Places has a collection of Images. This query returns back all places for "DE" and for each place only the Image that has the property IsCover true

How can I write this in fluent API?

I tried following:

return await _oDataClient
                .For<Place>()
                .Filter(p => p.CountryCode == "DE"))
                .Expand(f => f.Images.Where(i => i.IsCover == true))
                .FindEntriesAsync();

but it keeps giving and exception. Is there any way to write this in fluent API?

alaa_sayegh
  • 2,141
  • 4
  • 21
  • 37
  • 2
    This isn't supported by Simple.Odata.Client. See [this outstanding issue.](https://github.com/simple-odata-client/Simple.OData.Client/issues/200) – Jonathon Chase Apr 24 '19 at 20:21

0 Answers0