Breeze does not replace the Ref: node with its real data

强颜欢笑 提交于 2019-12-06 13:22:24
Dominictus

You should use .extend on client or .Include on server side for real data. When server returns $ref, that means that the object has been sent before and it has been given an unique identifier.

Instead of sending same object over and over again, server knows there is an object with unique identifier and can then just send $ref instead of real object. Breeze is capable of parsing this and can replace $ref with real object that has been sent before.

The only thing you need to do is ask breeze to include that object into "main" object using either .expand or .Include on client or server side.

You can read some details about $ref in breeze here: http://breeze.github.io/doc-cs/webservice-data-mapping.html

Just search for $ref, there is description below.

Why is "CurrentUserAssignments' marked with a [NotMapped] attribute?

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