Filter (any) statement doesn't work as accpected
Posted: Fri 02 Oct 2009 10:44
Hey
I try to use an equivalent to the IN statement, but it doesn't work, as I want.
I have a master table and a related child table. I want to filter the child table with the following code:
But it doesn't seem to work correct. myKundenst hold all the child's - not filtered.
THX
I try to use an equivalent to the IN statement, but it doesn't work, as I want.
I have a master table and a related child table. I want to filter the child table with the following code:
Code: Select all
Dim GetID as new List(of Long)
GetID.Add(1)
GetID.Add(2)
Dim myKundenst = From Query In LinqProvider.GetProvider.Kundenstamms _
Where Query.auftrags.Any(Function(c) GetID.Contains(c.Id)) _
Select Query
THX