Breeze Changing the Order of ComplexType Classes

流过昼夜 提交于 2019-12-12 03:43:08

问题


I am trying to load a "ComplexType" property (p2) that is being called from a ComplexType property (p1) (Nested ComplexType). After getting the metadata I see that both classes were recognized as complextypes, but in breeze.debug

toArray(schema.complexType)

it's seeing the p1 (outside complextype) first, so then when it tries to resolve one of its property type which is a complexType, p2. it's reading

var type = typeMap[qualTypeName];

and since "typeMap" doesn't have p2 and "okNotFound" is false, it's throwing an error

Uncaught Error: Unable to locate an 'Type' by the name: Address:#Domain

Anyone have run into the same problem? Am I missing something very obvious? Is there a way I can tell EFContextProvider in MVC4 Web API to render p1 before p2 when creating Metadata?


回答1:


Edit: This was a bug and as of v 1.3.2 has been fixed.


This may be a bug. We have not tested extensively with nested complex types. I will try to confirm it today or tommorow.



来源:https://stackoverflow.com/questions/15774009/breeze-changing-the-order-of-complextype-classes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!