This question is locked. New answers and comments are not allowed.
I've this Entity :public
class
MyEntity
{public
string
Name {
get
;
set
;}
}
A simple filter on a Property is defined as follows:FilterDescriptor filter =
new
FilterDescriptor();
filter.PropertyName ="Name"
;
filter.Operator = FilterOperator.Contains;
filter.Value ="abc"
;
and can be accessed using :
query = query.Where(ExpressionBuilder.Expression<MyEntity>(command.FilterDescriptors));
But to define a filter to that I can filter on Child Objects ?public
class
MyComplexEntity
{
public
string
Name {
get
;
set
;}
public
IList<OtherEntity> List {
get
;
set
;}
}public
class
OtherEntity
{public
string
Title {
get
;
set
;}
}
FilterDescriptor filter =new
FilterDescriptor();
filter.PropertyName ="List.Title"
; // ???
filter.Operator = FilterOperator.Contains;
filter.Value ="xyz"
;