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:
publicIQueryable<A> GetAWithB(){returnObjectContext.A.Include("LINK_A_B.B").OrderBy(A => A.Name);}
All objects have the [include] tags:
For Object A and B:
[Include]publicEntityCollection<LINK_A_B> LINK_A_B {get;set; }
And for the LINK Table
[Include]publicA A {get;set; }[Include]publicB 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:FilterDescriptorPropertyPath="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?