upsertAndReturnId method
Returns the row id of the inserted entity or -1 if it got updated.
Implementation
Future<int> upsertAndReturnId(final T item) async {
final tableInfo = await _getTableInfo();
final id = await _runInTransaction(
(executor) => _upsert(executor, item, tableInfo),
);
_changeListener?.notifyChange(_entityName);
return id;
}