IConstraint.

Like() Method

Summary

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

Syntax

IConstraint Like()

Remarks

This is a contains comparison which is case insensitive. This only works on strings. This mode will include all objects having the constrain expression somewhere inside the string field. For example:
var 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").Like();

Return Value

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