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

feat: Enhance IDataReader export with DynamicColumnFirst and Custom Formatting Delegate #700

Merged
merged 3 commits into from
Nov 29, 2024

Conversation

IcedMango
Copy link
Contributor

When exporting using IDataReader, I noticed that even when passing DynamicColumn, the exported content was not being exported according to the passed data.

In this PR, the following adjustments have been made for exporting using IDataReader:

  • Added the DynamicColumnFirst property to the configuration, which ensures that the data in DynamicColumn is used as the standard for exporting (currently only handled for IDataReader). To avoid breaking changes and unexpected behavior, this configuration item is added with a default value of false.
  • Added a custom data formatting delegate in ExcelColumnInfo and DynamicColumn.
  • Adjusted the method GetColumnInfosFromDynamicConfiguration to filter DynamicColumn in a case-insensitive manner.

When exporting data, some data is not directly obtained from the database. Therefore, a custom formatting delegate method has been added to format the data.

@shps951023 shps951023 merged commit da9b517 into mini-software:master Nov 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants