I'm trying to write a dynamic linq query like:
var q = obj.Where("message.Contains('hello')");
I know it works for
var q = obj.Where(o => o.message.Contains('hello'));
but i'm looking for dynamic linq solution
Thanks.
Found my answer now.
var q = obj.Where("message.Contains(@0)", "hello");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With