Skip to content

Commit

Permalink
fix: normalize column names
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirdock committed Sep 19, 2024
1 parent f105b1a commit 6bbecc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions DataTableConverter/Assisstant/importers/XmlImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace DataTableConverter.Assisstant.importers
{
internal static class XmlImporter
{

// Assumption: First XML-Element is the root object and this one contains a list. e.g. <Members><Member></Member></Members>
internal static void Import(string path, DatabaseHelper databaseHelper, ProgressBar progressBar, Form1 mainForm, string tableName)
{
HashSet<string> overallColumns = new HashSet<string>();
Expand All @@ -33,12 +33,12 @@ internal static void Import(string path, DatabaseHelper databaseHelper, Progress
XmlReader reader = XmlReader.Create(path, settings);
reader.Read();

// read static rows
// read static columns
if (reader.HasAttributes)
{
while (reader.MoveToNextAttribute())
{
string columnName = reader.LocalName;
string columnName = reader.LocalName.Replace('-', '_');
staticColumns[columnName] = reader.Value;
rowData[columnName] = reader.Value;
overallColumns.Add(columnName);
Expand Down
2 changes: 1 addition & 1 deletion DataTableConverter/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.43.0")]
[assembly: AssemblyFileVersion("1.0.44.0")]

0 comments on commit 6bbecc6

Please sign in to comment.