mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 优化 GlobalFilter 子查询传播重复的问题;#642
This commit is contained in:
@ -1030,7 +1030,7 @@ namespace FreeSql.Internal
|
||||
{
|
||||
var fsqlGlobalFilter = fsqlSelect0._whereGlobalFilter;
|
||||
if (fsqlGlobalFilter != tsc.whereGlobalFilter)
|
||||
fsqlGlobalFilter.AddRange(tsc.whereGlobalFilter);
|
||||
fsqlGlobalFilter.AddRange(tsc.whereGlobalFilter.Where(b => !fsqlGlobalFilter.Any(a => a.Name == b.Name)));
|
||||
}
|
||||
}
|
||||
else if (fsqlType != null)
|
||||
|
Reference in New Issue
Block a user