FilterOn with many to many

Posts   
 
    
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 24-Mar-2013 18:12:47   

~~Imagine I have (pseudo tables) A { Id, SomeDate Date }

B { A.Id, C.Id }

C { Id, StartDate Date, EndDate Date, }

Now I'd like to fetch A and prefetch C, like pseudo [code] A.WithPath(aPath => aPath .Prefetch<CEntity>(a => a.CCollectionViaB) .FilterOn(only C where A.SomeDate between C.StartDate and C.EndDate) ) [/code]

The problem is FilterOn where I can't reach A.SomeDate.~~

Nevermind, forget it. I have to think a bit more about this one -