fix: 修复 Lambda 表达式解析
This commit is contained in:
parent
da261c6405
commit
ae88de413a
|
@ -153,8 +153,9 @@ namespace BootstrapAdmin.Web.Extensions
|
|||
|
||||
if (v != null)
|
||||
{
|
||||
var val = v.GetType().IsEnum ? v.ToString() : v;
|
||||
var operatorExp = GetOperatorExpression(expression);
|
||||
sql.Where($"{db.Provider.EscapeSqlIdentifier(columnName)} {operatorExp} @0", v);
|
||||
sql.Where($"{db.Provider.EscapeSqlIdentifier(columnName)} {operatorExp} @0", val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue