I'm trying to change from SQLite to Realm.io in my Xamarin projects, but can't find any autoincrement on ID's. I found a post with Java, with following line:

```
int nextID = (int) (realm.where(dbObj.class).maximumInt("id") + 1);

```

In Xamarin there isn't a where, but i tried this:

```
realm.All<DebitorPlateDBModel> ().Max (x => x.Id + 1);

```

Sadly "Max" isn't support.

Has anyone succeed on this?