/// <summary>
/// 可以序列化为xml文件保存起来
/// </summary>
/// <param name="mydt">datatable(必须指定TableName,否则转换失败)</param>
/// <param name="Filename">指定XML文件名</param>
public static void DataTableToXml(DataTable mydt, string Filename)
{
mydt.WriteXml(Configuration.ApplicationPath + "\\" + Filename, XmlWriteMode.WriteSchema);
}
/// 可以序列化为xml文件保存起来
/// </summary>
/// <param name="mydt">datatable(必须指定TableName,否则转换失败)</param>
/// <param name="Filename">指定XML文件名</param>
public static void DataTableToXml(DataTable mydt, string Filename)
{
mydt.WriteXml(Configuration.ApplicationPath + "\\" + Filename, XmlWriteMode.WriteSchema);
}