批量操作不适用于 Sugar ORM

Bulk operation does not work on Sugar ORM

我正在使用 Sugar ORM,我想删除我正在使用的所有 table,但它不起作用,也没有在日志文件中显示任何错误:

这是我的模型:

 private String name;
private String lastName;
private String imgSoc;
private Boolean follow;
private String adresse;
private String site;
private int numOffres;

public Society( String name, String lastName, 
        String imgSoc, Boolean follow, String adresse, String site,
        int numOffres) {


    this.name = name;
    this.lastName = lastName;
    this.imgSoc = imgSoc;
    this.follow = follow;
    this.adresse = adresse;
    this.site = site;
    this.numOffres = numOffres;
}

和指挥官:

   Society.deleteAll(Society.class);

要执行批量删除,您必须实例化 class 和 select 要删除的记录。如果你想全部删除,它看起来像这样:

List<Society> items = Society.listAll(Society.class);
Society.deleteAll(Society.class);

原始文档:http://satyan.github.io/sugar/getting-started.html