where property

InstanceType where

A convenience for building predicate in a safe way.

Use this property instead of providing a predicate to filter the rows this query manipulates or fetches. This property is an instance of InstanceType with special ManagedObject.backingMap behavior. When you set properties of this property using matchers (see examples such as whereEqualTo and whereContainsString), the underlying database will generate a QueryPredicate to match the behavior of these matches. For example, the following query will generate a predicate that only operates on rows where 'id' is greater than 1:

  var q = new Query<Employee>()
      ..where.employeeID = greaterThan(1);

Implementation

InstanceType get where;