Ejemplo n.º 1
0
 /**
  * 失败返回-1
  *
  * @param context Context
  * @param entity ErrorHelpLog
  * @return int
  */
 public static int Insert(Context context, ErrorHelpLog entity) {
   FinalDb db = FinalDb.create(context, ApplicationConfig.DATABASE_NAME, DEBUG);
   if (db.saveBindId(entity)) {
     return entity.getId();
   }
   return -1;
 }