为什么$ expand返回null值 [英] why $expand returning null value

查看:130
本文介绍了为什么$ expand返回null值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两张桌子

文件和页面

与外键关系



当我使用在我的WEB API中查询



../odata/Documents?$expand=Pages



in odata结果返回---> [Docid = 1,Name =My Doc,...,Pages = null]



为什么它返回空值而不是扩展页面属性?

解决方案

expand =页面



in odata结果返回---> [Docid = 1,Name =My Doc,...,Pages = null]



为什么它返回空值而不是扩展页面属性?

I have two table
Documents & Pages
with foreign key relationship

when i am using query in my WEB API

../odata/Documents?$expand=Pages

in odata Results its returning---> [Docid=1,Name="My Doc",...,Pages=null]

Why it's returning null value instead of expanding Page properties?

解决方案

expand=Pages

in odata Results its returning---> [Docid=1,Name="My Doc",...,Pages=null]

Why it's returning null value instead of expanding Page properties?


这篇关于为什么$ expand返回null值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆