我有一个像这样的c#类:
[DataContract(IsReference = true)]
public class myTable
{
[Key]
[DataMember]
[StringLength(50)]
public string Id { get; set; }
[DataMember]
[StringLength(200)]
public string Title{ get; set; }
[DataMember]
public ICollection<Thing> Things{ get; set; }
}
在客户端,我希望通过他们的'Things'Count来获得所有实体'myTable'。
我试过了:
var query = breeze.EntityQuery.from(resourceName).orderBy('things.length');
var query = breeze.EntityQuery.from(resourceName).orderBy('things.Length');
var query = breeze.EntityQuery.from(resourceName).orderBy('things.count');
var query = breeze.EntityQuery.from(resourceName).orderBy('things.Count');
没有一个是好的查询,我怎么能按照'事物'的数量或长度订购'myTable'实体。
谢谢。
答案 0 :(得分:1)