mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 优化 导航属性未配置关系先 Where 后 InnerJoin 的问题;
This commit is contained in:
@ -687,7 +687,7 @@ namespace FreeSql.Internal
|
||||
else
|
||||
{
|
||||
var find = _tables.Where((a, c) => c > 0 &&
|
||||
(a.Type == tbtype || a.Type == SelectTableInfoType.From) &&
|
||||
(a.Type == tbtype || a.Type == SelectTableInfoType.From || a.Type == SelectTableInfoType.LeftJoin) &&
|
||||
string.IsNullOrEmpty(a.On) &&
|
||||
dicRegexAlias.GetOrAdd(a.Alias, alias => new Regex($@"\b{alias}\.", RegexOptions.Compiled)).IsMatch(sql)).LastOrDefault();
|
||||
if (find != null)
|
||||
|
Reference in New Issue
Block a user