Synchronization code

This commit is contained in:
sunkaixuan
2024-05-24 11:38:15 +08:00
parent 290a50b8ea
commit bbe7c35e75
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ namespace SqlSugar
}
public virtual bool Any()
{
return this.Take(1).Select("1").ToList().Count() > 0;
return this.Clone().Take(1).Select("1").ToList().Count() > 0;
}
public virtual List<TResult> ToList<TResult>(Expression<Func<T, TResult>> expression)

View File

@@ -131,7 +131,7 @@ namespace SqlSugar
public async Task<bool> AnyAsync()
{
return (await this.Take(1).Select("1").ToListAsync()).Count() > 0; ;
return (await this.Clone().Take(1).Select("1").ToListAsync()).Count() > 0; ;
}
public Task<int> CountAsync(CancellationToken token)