mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fixing postgresql search
This commit is contained in:
parent
e91083afa8
commit
61df4ca61a
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user