Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhuachao committed Mar 27, 2019
1 parent 81f89b6 commit 40e0ca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DotNet.Common/DataTableHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ public static string DataTableToXML(DataTable dt)
/// <summary>
/// XML 转 DataSet
/// </summary>
/// <param name="path">XML文件相对路径</param>
public DataSet XMLToDataSet(string path)
/// <param name="fileName">XML文件名称</param>
public static DataSet XMLToDataSet(string fileName)
{
try
{
DataSet ds = new DataSet();
ds.ReadXml(FileHelper.GetAbsolutePath(path));
ds.ReadXml(fileName);
if (ds.Tables.Count > 0)
{
return ds;
Expand Down

0 comments on commit 40e0ca2

Please sign in to comment.