Skip to content

Commit

Permalink
- 修复 3.2.810 开始解析 Guid.NewGuid().ToString().Replace("-", "") 变为非 repl…
Browse files Browse the repository at this point in the history
…ace(newid(), '-', ''),现恢复;
  • Loading branch information
2881099 committed Nov 30, 2024
1 parent b9048c5 commit 767adce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 109 deletions.
1 change: 1 addition & 0 deletions FreeSql/Extensions/LambadaExpressionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ protected override Expression VisitParameter(ParameterExpression node)
protected override Expression VisitMethodCall(MethodCallExpression node)
{
if (Result && node.IsExpressionCall()) Result = false;
if (Result && node.Method.Name == "NewGuid" && node.Method.DeclaringType == typeof(Guid) && node.Object == null) Result = false;
return base.VisitMethodCall(node);
}
}
Expand Down
109 changes: 0 additions & 109 deletions FreeSql/FreeSql.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 767adce

Please sign in to comment.