mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 04:59:34 +08:00
!72 GetReaderByToken 传入 cancellationToken,支持取消信号
Merge pull request !72 from 杜子腾/master
This commit is contained in:
commit
bc6380418a
@ -31,11 +31,11 @@ namespace SqlSugar
|
||||
|
||||
#region abstract Methods
|
||||
|
||||
public virtual bool SupportReadToken { get; set; }
|
||||
public virtual bool SupportReadToken { get; set; } = true;
|
||||
|
||||
public virtual Task<bool> GetReaderByToken(IDataReader dataReader, CancellationToken cancellationToken)
|
||||
{
|
||||
return ((DbDataReader)dataReader).ReadAsync();
|
||||
return ((DbDataReader)dataReader).ReadAsync(cancellationToken);
|
||||
}
|
||||
public virtual void ChangeJsonType(SugarParameter paramter)
|
||||
{
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user