我可以使用xml架构来定义数据集表 [英] Can I use xml schema to define a dataset table
本文介绍了我可以使用xml架构来定义数据集表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个案例,我有.xsd文件,我想在VB 2010中使用Dataset对象。
我可以使用.xsd文件来创建DataTable对象的列定义?
我试图避免重新键入所有列数据以及出错的风险。
谢谢。
Murray
I have a case where I have .xsd files that I want to use with the Dataset object in VB 2010.
Can I use an .xsd file to create the column definitions for the DataTable object?
I am trying to avoid re-typing all the column data and the risk of error doing so.
Thanks.
Murray
推荐答案
是。
DataSet和DataTable都包含ReadXmlSchema和WriteXmlSchema方法(在各种重载中)。
谷歌和MSDN会为你找到它们,但是:
DataTable.ReadXmlSchma [ ^ ]
DataSet.ReadXmlSchema [ ^ ]
这篇关于我可以使用xml架构来定义数据集表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文