mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 修复 Expression 导致 AOT 运行失败的问题;
This commit is contained in:
parent
4838c89887
commit
cad1ae1030
@ -2545,7 +2545,7 @@ namespace FreeSql.Internal
|
||||
Expression.IfThenElse(
|
||||
Expression.TypeEqual(valueExp, typeof(byte[])),
|
||||
Expression.IfThenElse(
|
||||
Expression.OrElse(Expression.Equal(Expression.Constant(type), Expression.Constant(typeof(Guid))), Expression.Equal(Expression.Constant(type), Expression.Constant(typeof(Guid?)))),
|
||||
Expression.Equal(Expression.Constant(type), Expression.Constant(typeof(Guid))),
|
||||
Expression.Return(returnTarget, Expression.Convert(Expression.Call(MethodBytesToGuid, Expression.Convert(valueExp, typeof(byte[]))), typeof(object))),
|
||||
Expression.IfThenElse(
|
||||
Expression.Equal(Expression.Constant(type), Expression.Constant(typeof(string))),
|
||||
|
Loading…
x
Reference in New Issue
Block a user