Vitalii Khmurach
Vitalii Khmurach
> users.Where("GivenName.Contains(\"sa\", StringComparison.OrdinalIgnoreCase)"); Still does not work for me in 1.2.6: No applicable method 'Contains' exists in type 'String'
> @khmurach How are you escaping the quotation marks? Also, is this being run against a database or other Queryable provider? Yes, I'm escaping. I'm using Where on List().AsQueryable()
@zspitz I have generic method so there is no properties to use in standard Where(x=>x.Name.Contains("value")). `IQueryable ApplyFilter(IQueryable dataAll, object filter)` This line works fine: `dataQueryable = dataQueryable.Where("{0}.ToLower().Contains(@0)".FormatWith(item.Key), item.Value.ToString().ToLower());` But I...
> @khmurach This works for me: > > ```cs > var lst = new List(); > var qry = lst.AsQueryable().Where("GivenName.Contains(\"sa\", StringComparison.OrdinalIgnoreCase)"); > > public class User { > public string?...
Even in this simplified example, first two queries works fine but the last one throws error: ``` var items = new List() { new ListItem { Title = "John" },...
I'm using `object filter` in `IQueryable ApplyFilter(IQueryable dataAll, object filter)` to be able to use any object (projection) as a filter and to use reflection to scan props and values...