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(MiniExcelDataReaderBase): add asynchronous support #706

Merged

Conversation

izanhzh
Copy link
Member

@izanhzh izanhzh commented Jan 2, 2025

  1. 增加支持异步方法,BootstrapBlazor 这个库用到了这个基类,GetValue 中需要调用一个异步方法,增加异步支持,避免同步方法调用异步方法
  2. 修复了 MiniExcelIssueTests.EmptyDataReaderIssue 这个测试用例,对MiniExcel.SaveAsAsync不支持BUG,ExcelOpenXmlSheetWriter.Async 对比 ExcelOpenXmlSheetWriter 漏了一个关键代码逻辑

close #707

@izanhzh izanhzh closed this Jan 2, 2025
@izanhzh izanhzh reopened this Jan 2, 2025
@ArgoZhang
Copy link
Contributor

@izanhzh @shps951023 我来测试一下

@ArgoZhang ArgoZhang self-assigned this Jan 3, 2025
@ArgoZhang ArgoZhang added the enhancement New feature or request label Jan 3, 2025
@ArgoZhang
Copy link
Contributor

@shps951023 BootstrapBlazor 里测试通过,没有问题啦

@ArgoZhang ArgoZhang merged commit bb34116 into mini-software:master Jan 3, 2025
2 checks passed
@izanhzh izanhzh deleted the data-reader-add-async-support branch January 3, 2025 07:43
if (columnInfo?.CustomFormatter != null)
{
try
{
cellValue = columnInfo.CustomFormatter(cellValue);
}
catch (Exception e)
catch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: remove try catch by condition

@shps951023
Copy link
Member

🐱‍🏍 预计下周六发更新版本,我这边在研究 place in cell 图片导出导入功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(MiniExcelDataReaderBase): support async method
3 participants