Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么要设置一个ImporterHeader,还要设置ExporterHeader #121

Closed
gudufy opened this issue Jun 28, 2020 · 3 comments
Closed

为什么要设置一个ImporterHeader,还要设置ExporterHeader #121

gudufy opened this issue Jun 28, 2020 · 3 comments
Labels

Comments

@gudufy
Copy link

gudufy commented Jun 28, 2020

我导入导出的列名都一样的,却要设置两次,作者大大能优化不?

@hueifeng
Copy link
Member

@gudufy Thank you for issue, current ImporterHeader and ExporterHeader doing different jobs, I think this proposal can be considered in the next big plan.

@hueifeng hueifeng added the area-excel excel label Jun 28, 2020
@xin-lai
Copy link
Collaborator

xin-lai commented Jul 12, 2020

@hueifeng @gudufy 这个问题早有考虑,并且已经实现,见 #63
支持使用System.ComponentModel.DataAnnotations命名空间下的部分特性来控制导入导出,比如

  • DisplayAttribute
  • DisplayFormatAttribute
  • DescriptionAttribute

封装简单的易于使用的单一特性,例如

  • IEIgnoreAttribute(可作用于属性、枚举成员,可影响导入和导出)

@xin-lai
Copy link
Collaborator

xin-lai commented Jul 12, 2020

@hueifeng #63 通用特性的使用教程麻烦补一下。

@xin-lai xin-lai closed this as completed Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants