IConstraint.

Contains() Method

Summary

Sets the evaluation mode to string contains comparison.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o.Query
Containing Type
IConstraint

Syntax

IConstraint Contains()

Remarks

Sets the evaluation mode to string contains comparison. This only works on strings. The contains comparison is case sensitive. For example:
Pilot pilot = new Pilot("Test Pilot1", 100);
container.Store(pilot);
...
query.Constrain(typeof(Pilot));
// All pilots with the name containing "est" will be retrieved
query.Descend("name").Constrain("est").Contains();

Return Value

Type Description
IConstraint this constrain to allow the chaining of method calls.