202 votesHeiko commented
Just to bring this back to memory. Unwrapped entities is a MUST if handling with all things non-breeze and non-knockout like sending to another webservice or just fill some third-party widget with data.Heiko supported this idea ·
This is not an error.
Breeze ‘complex objects’ have a ‘complexAspect’ property that is analogous to the ‘entityAspect’ that is found on ‘entities’.
All complex objects ALSO have a GetEntityAspect() method. The GetEntityAspect method returns the top level EntityAspect associated with the complexObject ( complex objects can be nested so this may go thru multiple parent objects before returning the final parent EntityAspect – this is why this is a method and not a property).
Entity objects by comparision have only a single entityAspect property.Heiko commented
Maybe I misunderstood, but the documentation for "ComplexAspect Class" (not "ComplexObject"!) is listing two properties named "entityAspect" and "propertyPath". Both are NOT part of the complexAspect property of complexObject, at least not if I take a look at all properties in the console window. What I see is:
Also, taking a look in the current TypeScript definitions file breeze.d.ts there are no such properties, only two methods "getEntityAspect()" and "getPropertyPath()".
Please, make me wise. :-)