DomainObjects Class Library

Criteria.AddNotInSubquery Method (Field, ScalarQuery)

Constrains the search to rows in which the field has a value that is not equal to any of the values returned by the given subquery.

public Criteria AddNotInSubquery(
   Field field,
   ScalarQuery subquery
);

Parameters

field
A field from the object model. It can be a field in a persistable object, a constant or a function.
subquery
A subquery that returns the values to compare against. Exactly one select field must have been added to the subquery via a call to AddSelectField. This added select field specifies which values will be returned by the query and thus compared against.

Return Value

The current Criteria to which an AddInSubquery constraint has been added.

See Also

Criteria Class | DomainObjects.Facade.Command Namespace | Criteria.AddNotInSubquery Overload List