mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 13:09:33 +08:00
Update exp to sql
This commit is contained in:
parent
5849c08526
commit
a86e8948aa
@ -482,7 +482,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
value = result;
|
value = result;
|
||||||
}
|
}
|
||||||
else if (name.IsIn("Contains", "StartsWith", "EndsWith") &&item==args.Last()&& ExpressionTool.IsSqlParameterDbType(this.Context, args.First()))
|
else if (!(item is ParameterExpression)&& name.IsIn("Contains", "StartsWith", "EndsWith") &&item==args.Last()&& ExpressionTool.IsSqlParameterDbType(this.Context, args.First()))
|
||||||
{
|
{
|
||||||
var myvalue = ExpressionTool.DynamicInvoke(args.Last());
|
var myvalue = ExpressionTool.DynamicInvoke(args.Last());
|
||||||
var parametre = ExpressionTool.GetParameterBySqlParameterDbType(this.Context.ParameterIndex,myvalue, this.Context, args.First());
|
var parametre = ExpressionTool.GetParameterBySqlParameterDbType(this.Context.ParameterIndex,myvalue, this.Context, args.First());
|
||||||
|
Loading…
Reference in New Issue
Block a user