IConstraint.

StartsWith(bool) Method

Summary

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

Syntax

IConstraint StartsWith(bool caseSensitive)

Remarks

Sets the evaluation mode to string StartsWith comparison. For example:
Pilot pilot = new Pilot("Test Pilot0", 100);
container.Store(pilot);
...
query.Constrain(typeof(Pilot));
query.Descend("name").Constrain("Test").StartsWith(true);

Parameters

Name Type Description
caseSensitive bool comparison will be case sensitive if true, case insensitive otherwise

Return Value

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