Skip to content

Commit

Permalink
update nuget version
Browse files Browse the repository at this point in the history
  • Loading branch information
DungAT98 committed Nov 22, 2023
1 parent 5602ca3 commit 5a3b590
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions ExcelReaderMapper/ExcelReaderMapper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
<Copyright>DungAT</Copyright>
<PackageProjectUrl>https://github.com/DungAT98/ExcelMapper</PackageProjectUrl>
<PackageId>ExcelReaderMapper</PackageId>
<PackageVersion>2.3.2</PackageVersion>
<PackageVersion>2.3.3</PackageVersion>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/DungAT98/ExcelMapper</RepositoryUrl>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>keypair.snk</AssemblyOriginatorKeyFile>
<AssemblyVersion>2.3.2</AssemblyVersion>
<FileVersion>2.3.2</FileVersion>
<AssemblyVersion>2.3.3</AssemblyVersion>
<FileVersion>2.3.3</FileVersion>
<PublicSign>false</PublicSign>
<DelaySign>False</DelaySign>
<AssemblyName>ExcelReaderMapper</AssemblyName>
Expand Down
2 changes: 1 addition & 1 deletion ExcelReaderMapper/Model/WorkSheetResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public class WorkSheetResult<TExcelModel> : WorksheetBaseInformation

public bool IsError => RowResults.Count(n => n.IsError) > 0;

public Dictionary<string, int> HeaderRow { get; set; } = new Dictionary<string, int>();
public string[] HeaderRow { get; set; }
}
}
7 changes: 1 addition & 6 deletions ExcelReaderMapper/Service/ExcelMapperServiceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,7 @@ private List<string[]> FlipList(List<string[]> input)
return workSheetResult;
}

workSheetResult.HeaderRow = headerRow.Select((n, index) => new
{
Data = n,
Index = index
})
.ToDictionary(n => n.Data, n => n.Index);
workSheetResult.HeaderRow = headerRow;
// correct the row number
currentLine += lengthOfHeader - 1;

Expand Down

0 comments on commit 5a3b590

Please sign in to comment.