【发布时间】:2018-10-25 05:31:41
【问题描述】:
DataSet ds = CreateDynamicDataSet();
ds.WriteXml(@"E:\AppScienti\AppScienti-POSLite\POSLite-Dev\XML\POSLite.xml");
private DataSet CreateDynamicDataSet()
{
DataSet ds = new DataSet("DS");
//ds.Namespace = "StdNamespace";
dtOutletMapping.TableName = "Tables[2]";
ds.Tables.Add(dtOutletMapping);
dtxmlEmployee.TableName = "Tables[0]";
ds.Tables.Add(dtxmlEmployee);
dtxmlOrg.TableName = "Tables[1]";
ds.Tables.Add(dtxmlOrg);
return ds;
}
在上面的代码中,我直接在 winform 中有路径并且它工作正常,现在我想将路径保留在 app.config 中并使用路径将数据集写入文件
请问有什么可能的解决办法吗?
【问题讨论】:
标签: asp.net winforms app-config csharpcodeprovider