我有以下 odata 查询:
/Places?$filter=CountryCode eq 'de'&$expand=Images($filter=IsCover eq true)
Places
有一个collection
。_ Images
此查询返回“DE”的所有位置,并且每个位置仅返回Image
具有该属性的位置IsCover true
我怎样才能用流利的 API 写这个?
我试过以下:
return await _oDataClient
.For<Place>()
.Filter(p => p.CountryCode == "DE"))
.Expand(f => f.Images.Where(i => i.IsCover == true))
.FindEntriesAsync();
但它不断给予和例外。有什么办法可以用流利的 API 写这个吗?