mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-21 02:58:05 +08:00
Update XuguDataAdapter.cs
修改重名判断
This commit is contained in:
@@ -62,7 +62,7 @@ namespace SqlSugar.Xugu
|
|||||||
{
|
{
|
||||||
string name = dr.GetName(i).Trim();
|
string name = dr.GetName(i).Trim();
|
||||||
//重名时的处理
|
//重名时的处理
|
||||||
if (!columns.Contains(name)) name += i;
|
if (columns.Contains(name)) name += i;
|
||||||
columns.Add(new DataColumn(name, dr.GetFieldType(i)));
|
columns.Add(new DataColumn(name, dr.GetFieldType(i)));
|
||||||
}
|
}
|
||||||
//填充行
|
//填充行
|
||||||
@@ -95,4 +95,4 @@ namespace SqlSugar.Xugu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user