Fields

Indicates which field(s) to update when updating an entity. This is useful when having an entity with a field that holds big data and and a small field that is updated frequently. By adding the Fields attribute the big data is not sent to the database and updated every time the small field is, saving time.

Constructors

this
this(string[] fields)
Undocumented in source.

Members

Variables

fields
string[] fields;
Undocumented in source.

Examples

interface ExampleRepository : Repository!Example {

   @Update
   @Fields("b")
   void updateB(Example entity);

   @Update
   @Fields("c")
   void updateC(Example entity);

}

Meta