如何返回wcf数据服务客户端的实体名称? [英] How to return the entity name for wcf data service client?
问题描述
当我们想返回一个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数据服务客户端中返回实体属性的名称?
您好Anonymous9153,
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屋!