我正在使用 Sugar ORM,我想删除我正在使用的所有表,但这不起作用并且不会在日志文件中显示任何错误:
这是我的模型:
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);