GetReaderByToken 传入 cancellationToken,支持取消信号

This commit is contained in:
guoshun.du
2025-01-14 10:44:36 +08:00
parent 5fb5d38039
commit e496c6d1d7
2 changed files with 14 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ namespace SqlSugar
public virtual Task<bool> GetReaderByToken(IDataReader dataReader, CancellationToken cancellationToken)
{
return ((DbDataReader)dataReader).ReadAsync();
return ((DbDataReader)dataReader).ReadAsync(cancellationToken);
}
public virtual void ChangeJsonType(SugarParameter paramter)
{

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>C:\Users\Administrator\Desktop\编译打包</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<_TargetId>Folder</_TargetId>
</PropertyGroup>
</Project>