dotnetcore / dotnetcore/Magicodes.IE

是否考虑支持不强制导入DTO类中的属性在导入EXCEL中必须有对应的列

Open
#345 0 comments 0 reactions 0 assignees View on GitHub
area-excel enhancement
Dominant language
C#
Stars
2.2k
Forks
495
PR merge metrics
No merged PRs in 30d

Description

使用场景:针对多个不同结构的导入EXCEL,它们有相同的列名,也有各自特有的列名。然后定义一个共用的导入DTO,包含所有EXCEL的所有列。

当前如果EXCEL中缺少能与DTO中某些属性匹配的列,则会记录错误。

https://github.com/dotnetcore/Magicodes.IE/blob/dc33a1d260caf8010d31a99434e9cd2cfd3f0c30/src/Magicodes.ExporterAndImporter.Excel/Utility/ImportHelper.cs#L605-L624

是否可以在`ImporterHeaderAttribute`中添加一个属性,用于设置忽略这样的错误。

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.