我如何在本地查询complexType实体

时间:2015-04-07 10:11:20

标签: breeze

我有基于导入函数的复杂类型实体,

我可以正常从远程服务器调用此实体而没有问题,

但是当我想在同一个实体上本地执行查询时,我会收到错误

  

findOrCreateEntityGroups(breeze.debug.js:14326)at at   proto.executeQueryLocally(breeze.debug.js:12981)

2 个答案:

答案 0 :(得分:0)

您的问题并不完全清楚,但ComplexTypes只能 作为其父实体的一部分进行查询。 ComplexTypes本身不是实体,它们只是结构的属性集合,它们本身就是某些其他实体的属性。

答案 1 :(得分:0)

]             " functionImport":{                 " name":" GetTree",                 " isComposable":" true",                 " returnType":" Collection(ORICODBModel.GetTree_Result)",                 "参数":[                     {                         " name":" CLIENTNUM2",                         "模式":"在",                         "输入":" Edm.Int32"                     },                     {                         "名称":" CODECON",                         "模式":"在",                         "输入":" Edm.Int32"                     }                 ]             }         },         " complexType":{             " name":" GetTree_Result",             "财产":[                 {                     "输入":" Edm.Int32",                     " name":" clientnum",                     " nullable":" true"                 },                 {                     "输入":" Edm.Int32",                     " name":" con_code",                     " nullable":" true"                 },                 {                     "输入":" Edm.Int32",                     " name":" level",                     " nullable":" true"                 }}