【发布时间】:2016-05-09 07:56:28
【问题描述】:
您好,我在使用时遇到错误
query = query.Where(r => r.Features.ContainsValue(fuelType));
这是我的模型
public class VehicleResponse
{
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
public Vehicle Vehicle { get; set; }
public List<string> PhotoUrls { get; set; }
public string VideoUrl { get; set; }
public Dictionary<string, string> Features { get; set; }
public List<string> Equipments { get; set; }
public VehicleResponse()
{
this.PhotoUrls = new List<string>();
}
}
DocumentDB 不支持“ContainsValue”方法。那么我应该如何更改我的 LINQ 查询呢?
谢谢。
【问题讨论】:
标签: c# linq azure azure-cosmosdb nosql