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