I need to implement an expression for a method like here:
var prop = Expression.Property(someItem, \"Name\");
var value = Expression.Constant(someConstant);
You can do like this:
var like = typeof(StringEx).GetMethod("Like", new[] {typeof(string), typeof(string)});
comparer = Expression.Call(null, like, prop, value);
You can pass prop
as first parameter and value
as second parameter like above.
Maybe you will need to get a complete query before apply an extension method.