问题描述
是否有可能有超过该得到支持.Net xsd.exe工具生成的类名称的任何控制?
Is it possible to have any control over the class names that get generated with the .Net XSD.exe tool?
推荐答案
据我所知,我不认为这是可能的,类名几乎完全以最新的架构相匹配。
As far as I'm aware I don't think this is possible, the class names match almost exactly to whats in the schema.
我个人会改变的类名称后XSD生成了code,但说实话,我通常只是坚持自己的XSD生成。它那么容易为别人读的code明白了什么类映射到什么XML的部分。
Personally I would change the class names after XSD has generated the code, but to be honest I usually just stick with what XSD generates. Its then easier for someone else reading the code to understand what classes map to what parts of the XML.
另外,如果你有超过架构的控制,你可以更新?
Alternatively, if you have control over the schema you could update that?
这篇关于类生成与XSD.EXE自定义类的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!