且构网

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

我可以在自动生成的 WCF 类中包含自定义属性吗?

更新时间:2022-11-19 19:00:58

是的,您可以将 WSDL 中的任何信息转换为代码,但不一定使用 svcutil.如果您遇到 svcutil 支持的限制,您可能需要考虑另一种代码生成机制,例如 T4 模板.

Yes, you can translate any information from the WSDL into code, but not necessarily using svcutil. If you're running up against the limitations of what svcutil supports, you might want to consider another code generation mechanism, such as T4 templates.