Where

Adds a where clause to the query. This attribute can be used with query that select, update and remove entities. It is possible to use method's arguments in the where clause by adding the dollar sign plus the index (starting from 0, obviously) of the variable.

struct Where {}

Members

Variables

clause
string clause;
Undocumented in source.

Examples

interface ExampleRepository : Repository!Example {

   @Select
   @Where("b=$0")
   Example[] selectByB(string b);

   @Update
   @Where("b=$0 or b=$1")
   void update(string b0, string b1);

}

Meta