Remove

Deletes one or more entities from the database. If the entity does not have any primary key the Where attribute must also be present.

Examples

interface ExampleRepository : Repository!Example {

   @Remove
   void remove(Example entity);

}

The name of the attribute id Remove and not Delete due to a conflict with the Delete HTTP method name and the fact that delete is a reserved keyword in D, thus methods could not be called simply delete.

Meta