- 优化 AND OR 简写的表达式解析;

This commit is contained in:
2881099
2023-09-11 18:14:50 +08:00
parent 9561ec22c3
commit 4e740c3072
4 changed files with 21 additions and 98 deletions

View File

@ -947,6 +947,7 @@ namespace FreeSql.Internal
case "OR":
if (leftMapColumn != null) left = $"{left} = {formatSql(true, null, null, null)}";
else left = GetBoolString(left);
if (rightMapColumn == null) rightMapColumn = SearchColumnByField(tsc._tables, tsc.currentTable, right);
if (rightMapColumn != null) right = $"{right} = {formatSql(true, null, null, null)}";
else right = GetBoolString(right);
break;