Skip to content

Commit cad1ae1

Browse files
committed
- 修复 Expression 导致 AOT 运行失败的问题;
1 parent 4838c89 commit cad1ae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FreeSql/Internal/UtilsExpressionTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2545,7 +2545,7 @@ Expression LocalFuncGetExpression(bool ignoreArray = false)
25452545
Expression.IfThenElse(
25462546
Expression.TypeEqual(valueExp, typeof(byte[])),
25472547
Expression.IfThenElse(
2548-
Expression.OrElse(Expression.Equal(Expression.Constant(type), Expression.Constant(typeof(Guid))), Expression.Equal(Expression.Constant(type), Expression.Constant(typeof(Guid?)))),
2548+
Expression.Equal(Expression.Constant(type), Expression.Constant(typeof(Guid))),
25492549
Expression.Return(returnTarget, Expression.Convert(Expression.Call(MethodBytesToGuid, Expression.Convert(valueExp, typeof(byte[]))), typeof(object))),
25502550
Expression.IfThenElse(
25512551
Expression.Equal(Expression.Constant(type), Expression.Constant(typeof(string))),

0 commit comments

Comments
 (0)