关于来自数据集的xmlSchema信息 [英] Regarding xmlSchema information from dataset

查看:68
本文介绍了关于来自数据集的xmlSchema信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

在这里,我想知道如何从数据集中获取架构信息,实际上我已经编写了这样的代码.

Dear Friends,

Here i want to know how to get Schema Information from dataset,Actually i have written a code like this.

for (int i = 0; i < ds.Tables.Count; i++)
               {
                   ds.Tables[i].WriteXml(filepath + "/" + "tblTeachers" + ".xml");
                   xmlDoc = new XmlDocument();
                   xmlDoc.PreserveWhitespace = true;
                   xmlDoc.Load(filepath + "/" + "tblTeachers" + ".xml");
                   //Encrypt(xmlDoc, " ", rsaKey, "rsaKey");
                   xmlDoc.Save(filepath + "/" + "tblTeachers" + ".xml");

               }



从这个IAM导入数据集信息到Xml可以正常工作.但是我想要Perticular表的Datatypes意味着



From this iam importing dataset information to Xml its working fine.But i want the Datatypes of perticular table means

Coloumn Names       DataType  AllowNulls

intTeacherID        int       No




我希望通过xmal模式获得数据类型信息


问候,

Anilkumar.D




i want the datatype information throgh xmal schema


Regards,

Anilkumar.D

推荐答案


这篇关于关于来自数据集的xmlSchema信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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