I've 3 simple sql tables :
t1( id int primary key, name char(16) );
t2( id int primary key, name char(16) );
t3( id1 int references t1(id), id2 int references t2(id) );
as you see, t3 is a N-to-N relation between t1 & t2. I added this tables to my data model & using entity manager I can query t1 & t2.
If I want to access related records between t1 & t2, I use something like this (here I get all records from t2 which are in relation with t1 using a record with id=X) :
RelatedEntityList<t2> list = from r in mgr.t1s where r.id==X select r.t2s ;
but this linq query returns ALL related records.
I want to know is there any way to get only a subset of this list from the server (instead of retrieving all of them) ?
I need it because a record in t1 table may be in a relation with MANY! records of t2 & vice versa (for instance, suppose a 1 to 1000 relation)
Edited by ehsan - 27-Jun-2010 at 10:43am