Update with multiple condition Xamarin.Firebase Database

前端 未结 1 1193
误落风尘
误落风尘 2021-01-28 06:25

Hey good day I am new to Firebase Database or Document Type DB, I am using firebasedatabase (https://github.com/step-up-labs/firebase-database-dotnet) My Problem is updating spe

相关标签:
1条回答
  • 2021-01-28 06:58

    Seems what you like is Update specific fields, but this method is built in the native firebase for Android lib, I couldn't find such a method in your FirebaseDatabase.net lib.

    So, to solve your issue, you may:

    1. Install the Xamarin.Firebase.Database package and try the UpdateChildrenAsync or UpdateChildren method of this package. This package is like the native SDK for Xamarin.Android.

    2. Or, download all the data in that node and parse them to a List of your data type Dinosaur, then modify the list item you wanted and finally use the PutAsync method of FirebaseDatabase.net lib to overwrite the old data in that node.

    0 讨论(0)
提交回复
热议问题