TechTalk Genome v4.2

Set<T>.Where Method 

Returns a Set<T> that contains elements of the source Set<T> filtered by the specified OQL filter expression.

public Set<T> Where(
   string where,
   params object[] parameters
);

Parameters

where
An OQL expression that evaluates to a boolean value. The expression may contain zero or more literal parameter references and it can refer to the candidate element of the source Set<T> using the this keyword.
parameters
An array of zero or more objects that can be used as literal argument values in where.

Return Value

A Set<T> containing the subset of the source Set<T> filtered for those elements for which the where evaluates to true.

Exceptions

Exception TypeCondition
OqlParserExceptionwhere does not denote a valid OQL expression.
SqlDomException

where is not applicable to the element type of the source Set<T>.

or

where can not be translated to the target SQL language.

or

where is not a boolean expression.

SchemaExceptionwhere contains expressions or features that cannot be translated with the given DataDomainSchema.

Requirements

Namespace: TechTalk.Genome

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.11.59

Editions: Professional, Evaluation, Express

See Also

Set<T> Class | TechTalk.Genome Namespace | Item | Filtering