Fixing postgresql search

This commit is contained in:
Zoe Roux 2021-06-20 14:01:24 +02:00
parent e91083afa8
commit 61df4ca61a

View File

@ -107,7 +107,7 @@ namespace Kyoo.Postgresql
public override Expression<Func<T, bool>> Like<T>(Expression<Func<T, string>> query, string format)
{
MethodInfo iLike = MethodOfUtils.MethodOf<string, string, bool>(EF.Functions.ILike);
MethodCallExpression call = Expression.Call(iLike, query.Body, Expression.Constant(format));
MethodCallExpression call = Expression.Call(iLike, Expression.Constant(EF.Functions), query.Body, Expression.Constant(format));
return Expression.Lambda<Func<T, bool>>(call, query.Parameters);
}