rlamasb / Firebase.Xamarin

Light weight wrapper for Firebase Realtime Database REST API.
MIT License
149 stars 39 forks source link

How do you do an update? #42

Open codegrue opened 6 years ago

codegrue commented 6 years ago

When you map a subscription to an ObservableCollection of POCO objects, they don't have a property for the "key". How would you get the relevant key to perform an update back in firebase?

        var changedTodo = observableCollection.First();
        changedTodo.Completed = true;
        changedTodo.Description = "Modified Text Here";

        var key = ????

        todosRealTimeDb.Put(key, changedTodo);