Hi,
I really love the 'Linq-based expression engine'. It makes my live as developer really easy for filtering, sorting and paging.
I am just wondering whether it is possible to manipulate the linq code for a column. I have this situation:
My Item class contains these properties:
public virtual Word ItemName { get; set; }
public virtual IList<Word> AlternativeItemNames { get; set; }
Where Word looks like this:
public class Word : Entity
{
...
public virtual string Text { get; set; }
...
}
The ItemName is the ‘main word’ of the Item and I can filter by this very good using ‘starts with’ etc.
I would really like to filter for Items where:
- The ‘main word’ OR AlternativeItemNames start with something, are equal etc.
Is this easily possible?
I know how to intercept the GridCommand at, for example, the data access/repository level. Maybe there is another easier way? Maybe I can define something at a higher level to change what the Linq-based expression engine feeds in (e.g. even in the view)?
Thanks.
Best wishes,
Christian