Determines whether an element is in the Set.
true if item is found in the set; otherwise, false.
The method determines efficiently whether an element is in the Set both on the server and on the client side.
Genome will choose the best implementation depending on your set's element type. If the ElementType is a scalar or persistent class that has only one primary key, a SQL "IN" operator is generated with a sub-query expression. If the element type has more than one primary key, than the "EXISTS" SQL operator is used instead.
dataDomain.Extent(typeof(Animal))["Name.IsLike({0}) || {1}.Inhabitants.Contains(this)", "A%", cage];
Namespace: TechTalk.Genome
Assembly: TechTalk.Genome (in TechTalk.Genome.dll)
Version: 4.2.4.4
Editions: Professional, Evaluation, Express