fix: 修复 Lambda 表达式解析

This commit is contained in:
Argo-Tianyi 2021-12-21 23:30:19 +08:00
parent da261c6405
commit ae88de413a
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}
}