使用Schema文件生成C#代码 [英] Generate C# code using Schema file

查看:158
本文介绍了使用Schema文件生成C#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有架构文件,需要生成C#类。

生成C#代码的步骤

解决方案

我假设你正在谈论XSD架构(请注意,模板,架构,表格等词语有许多不同的含义,下次可能会更加努力地制定你的问题)。



因此,如果您有一个xsd,则不需要代码 - 只需使用XSD.exe工具(框架工具) - 用于使用,请参阅: http://msdn.microsoft.com/en-us/library/x6c1kb0s(v = vs.110).aspx [ ^ ]

I have schema file and need to generate C# class.
What are the steps to generate C# code

解决方案

I assume you are talking about an XSD Schema (please be aware that words like template, schema, form etc. have many different meanings, maybe next time put more effort in formulating your question).

So if you have a xsd no code is needed for that - just use the XSD.exe tool (Framework Tools) - for usage refer to: http://msdn.microsoft.com/en-us/library/x6c1kb0s(v=vs.110).aspx[^]


这篇关于使用Schema文件生成C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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