IConstraint.

Or(IConstraint) Method

Summary

Links two Constraints for OR evaluation.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o.Query
Containing Type
IConstraint

Syntax

IConstraint Or(IConstraint with)

Remarks

links two Constraints for OR evaluation. For example:

query.Constrain(typeof(Pilot));
query.Descend("points").Constrain(101).Greater().Or(query.Descend("name").Constrain("Test Pilot0"));

will retrieve all pilots with points more than 101 or pilots with the name "Test Pilot0"

Parameters

Name Type Description
with IConstraint the other Db4objects.Db4o.Query.IConstraint

Return Value

Type Description
IConstraint a new constrain, that can be used for further calls to Db4objects.Db4o.Query.IConstraint.And(Db4objects.Db4o.Query.IConstraint) and Db4objects.Db4o.Query.IConstraint.Or(Db4objects.Db4o.Query.IConstraint)