DomainObjects Class Library

Criteria.AddEqualTo Method 

Constrains the search to rows in which the field has a value equal to the given compareToValue.

public Criteria AddEqualTo(
   Field field,
   Object compareToValue
);

Parameters

field
A field from the object model. It can be a field in a persistable object, a constant or a function.
compareToValue
The value to compare against.

Return Value

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

Example

For a code example, see the AddEqualToWithInnerJoin() unit test.

See Also

Criteria Class | DomainObjects.Facade.Command Namespace