mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-06 13:47:59 +08:00
-
This commit is contained in:
parent
6645565095
commit
673f33fcbd
@ -65,7 +65,7 @@ namespace SqlSugar
|
||||
if (methodExp.Method.Name == "IF")
|
||||
{
|
||||
var parameter = this.context.Parameters.FirstOrDefault(it => it.ParameterName == sql.Trim());
|
||||
if (parameter != null && parameter.Value is bool)
|
||||
if (parameter!=null&¶meter.Value is bool)
|
||||
{
|
||||
sql = Convert.ToBoolean(parameter.Value) ? " 1=1 " : " 1=2 ";
|
||||
this.context.Parameters.Remove(parameter);
|
||||
|
Loading…
Reference in New Issue
Block a user