标签:.class auto pen top classname .exe open 读取 outer
using (SqlConnection conn=new SqlConnection(config)) { conn.Open(); SqlCommand comm = new SqlCommand(@"SELECT TOP 5 ClassID,ClassName,ClassNum FROM dbo.ClassRoom FOR XML AUTO",conn); XmlReader reader = comm.ExecuteXmlReader(); reader.Read(); while (!reader.EOF) { a += reader.ReadOuterXml(); } reader.Close(); return a; }
标签:.class auto pen top classname .exe open 读取 outer
原文地址:https://www.cnblogs.com/lbx6935/p/9644048.html