BaseDao<T extends BaseDbModel> constructor

BaseDao<T extends BaseDbModel>(
  1. String tableName,
  2. String primaryKey
)

Implementation

BaseDao(String tableName, String primaryKey) {
  __tableName = tableName;
  _primaryKey = primaryKey;
  BaseDbManager manager = BaseDbManager.instance;
  if (manager.oldVersion != -1 && manager.newVersion != -1) {
    onUpgrade(manager.oldVersion, manager.newVersion);
  }
}