forked from dotnetcore/Magicodes.IE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dotnetcore#549-Excel中缺少列时,应返回空和错误,不应该空指针异常
- Loading branch information
Showing
4 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/Magicodes.ExporterAndImporter.Tests/Models/Import/Issue549.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Magicodes.ExporterAndImporter.Core; | ||
|
||
namespace Magicodes.IE.Tests.Models.Import; | ||
|
||
public class Issue549 | ||
{ | ||
[ImporterHeader(Name = "姓名", AutoTrim = true)] | ||
public string Name { get; set; } | ||
|
||
[ImporterHeader(Name = "年龄", AutoTrim = true)] | ||
public decimal Age { get; set; } | ||
|
||
[ImporterHeader(Name = "身高", AutoTrim = true)] | ||
public decimal Height { get; set; } | ||
} |
Binary file added
BIN
+9.95 KB
src/Magicodes.ExporterAndImporter.Tests/TestFiles/Import/Issue549.xlsx
Binary file not shown.