mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Optimized code
This commit is contained in:
parent
b8b6f03466
commit
084562c290
@ -131,7 +131,7 @@ namespace SqlSugar
|
||||
|
||||
public async Task<bool> AnyAsync()
|
||||
{
|
||||
return await this.CountAsync() > 0;
|
||||
return (await this.Take(1).Select("1").ToListAsync()).Count() > 0; ;
|
||||
}
|
||||
|
||||
public Task<int> CountAsync(CancellationToken token)
|
||||
|
Loading…
Reference in New Issue
Block a user