mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-02 20:02:47 +08:00
Optimize nested queries
This commit is contained in:
parent
1df3647e96
commit
846ae8f651
@ -2396,6 +2396,10 @@ namespace SqlSugar
|
||||
|
||||
private bool MasterHasWhereFirstJoin()
|
||||
{
|
||||
if (this.QueryBuilder.IsSingle() == false && this.QueryBuilder.SelectValue is Expression&&this.QueryBuilder.AsTables?.Any()==false)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return this.QueryBuilder.JoinIndex == 0 &&
|
||||
this.QueryBuilder.IsSqlQuery == false &&
|
||||
!this.QueryBuilder.AsTables.Any() &&
|
||||
|
Loading…
Reference in New Issue
Block a user