Skip to content

Commit

Permalink
v2.0.12 修复BUG:ExistsAsync的实现代码中漏写了await,导致返回结果始终为true
Browse files Browse the repository at this point in the history
  • Loading branch information
0611163 committed Jul 22, 2024
1 parent e1a1f5d commit 3b54aa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dapper.Lite/Dapper.Lite/Dapper.Lite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<Nullable>disable</Nullable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Title>Dapper.Lite</Title>
<AssemblyVersion>2.0.11</AssemblyVersion>
<FileVersion>2.0.11</FileVersion>
<Version>2.0.11</Version>
<AssemblyVersion>2.0.12</AssemblyVersion>
<FileVersion>2.0.12</FileVersion>
<Version>2.0.12</Version>
<PackageId>Dapper.Lite</PackageId>
<PackageProjectUrl>https://github.com/0611163/Dapper.Lite</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand All @@ -20,7 +20,7 @@
</Description>
<PackageReleaseNotes>
更新内容:
1. IDbSession接口新增返回DataTable的分页查询方法
1. 修复BUG:ExistsAsync的实现代码中漏写了await,导致返回结果始终为true
</PackageReleaseNotes>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Dapper.Lite/Dapper.Lite/Session/DbSessionExecuteCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public bool Exists(string sqlString, DbParameter[] cmdParms)
/// </summary>
public async Task<bool> ExistsAsync(string sqlString, DbParameter[] cmdParms)
{
object obj = ExecuteScalarAsync(sqlString, cmdParms);
object obj = await ExecuteScalarAsync(sqlString, cmdParms);

if (object.Equals(obj, null) || object.Equals(obj, DBNull.Value))
{
Expand Down

0 comments on commit 3b54aa6

Please sign in to comment.