Determines whether an element is in the collection.
true if item is found in s; otherwise, false.
The method is translated into a SQL "IN" operator when used on the server side. The specified set is translated into a sub-query expression like this:
... Age IN (SELECT Age FROM Animal WHERE Name LIKE 'A%') ...
Note: The actual values are passed as parameters.
To use the IN operator when enumerating the items individually, use the IsIn overload.
Set selectedAges = dataDomain.Extent(typeof(Animal))["Name.IsLike({0})", "A%"].Select("Age");
Set selectedAnimals = dataDomain.Extent(typeof(Animal))["TechTalk.Genome.Sql.IsIn(Age, {0})", selectedAges];
Namespace: TechTalk.Genome
Assembly: TechTalk.Genome (in TechTalk.Genome.dll)
Version: 4.2.4.4
Editions: Professional, Evaluation, Express
Sql Class | TechTalk.Genome Namespace | Sql.IsIn Overload List | IsIn | Set.Contains