Skip to content

Commit c74b202

Browse files
committed
权限
1 parent 5783ea4 commit c74b202

File tree

2 files changed

+2
-190
lines changed

2 files changed

+2
-190
lines changed

FreeSql/FreeSql.xml

Lines changed: 0 additions & 190 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FreeSql/Internal/CommonExpression.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ rightExp is UnaryExpression rightExpUexp &&
873873
(leftMapColumn.Table.AsTableColumn == leftMapColumn && rightExp.IsParameter() == false)) ? //自动分表
874874
formatSql(Expression.Lambda(rightExp).Compile().DynamicInvoke(), leftMapColumn.Attribute.MapType, leftMapColumn, tsc.dbParams) :
875875
ExpressionLambdaToSql(rightExp, tsc);
876+
if (isLeftMapType) tsc.SetMapTypeReturnOld(leftMapColumn.Attribute.MapType);
876877
if (right != "NULL" && isLeftMapType &&
877878
//判断参数化后的bug
878879
!(right.Contains('@') || right.Contains('?') || right.Contains(':')) &&
@@ -899,6 +900,7 @@ rightExp is UnaryExpression rightExpUexp &&
899900
(rightMapColumn.Table.AsTableColumn == rightMapColumn && leftExp.IsParameter() == false)) ? //自动分表
900901
formatSql(Expression.Lambda(leftExp).Compile().DynamicInvoke(), rightMapColumn.Attribute.MapType, rightMapColumn, tsc.dbParams) :
901902
ExpressionLambdaToSql(leftExp, tsc);
903+
if (isRightMapType) tsc.SetMapTypeReturnOld(rightMapColumn.Attribute.MapType);
902904
if (left != "NULL" && isRightMapType &&
903905
//判断参数化后的bug
904906
!(left.Contains('@') || left.Contains('?') || left.Contains(':')) &&

0 commit comments

Comments
 (0)