Summary
Links two Constraints for AND evaluation.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o .Query - Containing Type
- IConstraint
Syntax
IConstraint And(IConstraint with)
Remarks
Links two Constraints for AND evaluation.
For example:
will retrieve all pilots with points less than 101 and name as "John"
query.Constrain(typeof(Pilot));
query.Descend("points").Constrain(101).Smaller().And(query.Descend("name").Constrain("John"));
will retrieve all pilots with points less than 101 and name as "John"
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)
|