This question is locked. New answers and comments are not allowed.
Lets Say I have 3 tables. Table A (with Objects) Table B (With Objects) and a LINK table (with two fields for linking both tables).
I have a method like this:
public
IQueryable<A> GetAWithB()
{
return
ObjectContext.A.Include(
"LINK_A_B.B"
).OrderBy(A => A.Name);
}
All objects have the [include] tags:
For Object A and B:
[Include]
public
EntityCollection<LINK_A_B> LINK_A_B {
get
;
set
; }
And for the LINK Table
[Include]
public
A A {
get
;
set
; }
[Include]
public
B B {
get
;
set
; }
In a page I have a grid bound to the GetAWithB which show objects A. And what I'd like to do is bind a text box to a property of object B. So that the user is able to see all Objects A wich a relation to Object B that contains a text in the B.Name property.
So I was thinking this should work like this:
<
riaControls:FilterDescriptor
PropertyPath
=
"LINK_A_B.B.Name"
Operator
=
"Contains"
Value
=
"{Binding ElementName=tbName, Path=Text}"
>
</
riaControls:FilterDescriptor
>
But the PropertyPath seems not to be the correct one...any ideas?