如何返回wcf数据服务客户端的实体名称? [英] How to return the entity name for wcf data service client?

查看:97
本文介绍了如何返回wcf数据服务客户端的实体名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们想返回一个PO实体的poitems实体:


             VAR P =从V IN context.POHeaders.Expand(QUOT; POItems")

            &NBSP ;      真实&& v.PartiesID == 8000&& v.PONumber ==" 11007063"

                &NBSP ;  选择v;


因为展开只接受字符串名称,我们想要使用强类型名称方法,例如,


             VAR P =从V IN context.POHeaders.Expand(POHeader.POItems)

                    真实&& v.PartiesID == 8000&& v.PONumber ==" 11007063"

                &NBSP ;   select v;


是否有任何函数/方法可以在WCF数据服务客户端中返回实体属性的名称?


 

解决方案

您好Anonymous915​​3,


Welocme到MSDN论坛,并感谢您在这里发帖。


根据您对问题的描述,我认为它更像是WCF数据服务问题。我将把它移到WCF数据服务论坛,以便您可以更好,更快地获得支持。


感谢您的理解和支持。


最诚挚的问候,


When we want to return poitems entities of a po entity as:

            var p = from v in context.POHeaders.Expand("POItems")
                    where true && v.PartiesID == 8000 && v.PONumber == "11007063"
                    select v;

As the expand only acccept the string name, and we want to use strong-type name method, for example,

            var p = from v in context.POHeaders.Expand(POHeader.POItems)
                    where true && v.PartiesID == 8000 && v.PONumber == "11007063"
                    select v;

Is there any functions/methods to return the name of entity's properties in WCF Data Service Client?

 

解决方案

Hello Anonymous9153,

Welocme to the MSDN Forum and thank you for posting here.

Based on your description about your issue, I think it is more like a WCF Data Service issue. I will move it to the WCF Data Service Forum so that you can get a support better and quicker.

Thank you for your understanding and support.

Best Regards,


这篇关于如何返回wcf数据服务客户端的实体名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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