CrudRepository.update

Updates an existing entity's fields.

interface CrudRepository(T)
void
update
()
if (
Ids!T.length
)

Examples

if(auto entity = repository.select(1)) {
   entity.b = "Updated";
   repository.update(entity);
}

Meta