【发布时间】:2013-05-09 09:47:19
【问题描述】:
我遇到了 Breeze 和 Durandal 的问题,这让我相信这可能是 Breeze 的错误,或者我不知道正确的语法。
这是我的模型(假设 Address 只是一个简单的 ComplexType 类)
public class Person {
public int Id {get;set;}
public string Name {get;set;}
public Address MyAddress {get;set;}
}
在使用 Breeze JS 的前端,我有以下内容:
EntityQuery.from('Person').select('id,name').orderBy('id');
上面的行很完美,但如果我有:
EntityQuery.from('Person').select('id,name,myAddress').orderBy('id');
我收到Error retreiving data. deferred is not defined 的错误消息
看起来,您不能在 Select 语句中拥有 ComplexType 属性。还有其他人遇到这个问题吗?提前感谢您的帮助。
【问题讨论】:
-
您也可以显示您的地址类别吗?另外,您如何将人映射到地址?
标签: javascript breeze durandal