我的 ViewModel 中有以下 javascript:
manager.executeQuery(query)
.then(function (projects) {
projects.results.forEach(function (item) {
if (item.IsFavorite() == true) {
self.favoriten.push(item);
}
else {
self.zuletzt.push(item);
}
});
console.log("Query favorite finished");
})
.fail(function (error) {
console.log("Query failed: " + error.message);
});
控制器:
var res = _contextProvider.Context.Projects
.Include("User11")
.Include("User12")
.Include("Timestamps")
.Where(p => p.Finished == false)
.Where(p => p.User12.Any(u => u.Guid == ID));
var erg = res.OrderByDescending(r => r.Timestamps.Min(t => t.Start));
return erg;
我收到一个错误:查询失败:+ 大量数据如果我删除三个 Include 语句,查询工作,但 odrderBy 不起作用。
有解决办法吗?