且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WCF datacontract问题,无法查看所有datacontract

更新时间:2022-03-03 08:24:50

我发现发生了什么。

它没有显示的原因是我定义了datacontract,但没有在界面中使用它。在我使用datacontract后,我在客户端看到它。



顺便说一下,谢谢大家!
I find out what is going on.
the reason it did not show up is I defined datacontract , but did not use it in interface. after I use the datacontract I see it on client side.

by the way, thank you everyone !


是的,Alimjan Yasin。你是对的,在创建数据合同类之后我们必须在界面中使用它。但我不明白为什么?希望有人可以提供帮助吗?
Yes, Alimjan Yasin. You are right, after creating data contract class we have to use it in interface. But I don't get it why ? Hope somebody can help ?


删除并更新服务参考