Breeze Changing the Order of ComplexType Classes

2019-09-03 10:50发布

问题:

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.