firebase-database-dotnet | C # library for Firebase Realtime Database | Database library
kandi X-RAY | firebase-database-dotnet Summary
kandi X-RAY | firebase-database-dotnet Summary
C# library for Firebase Realtime Database.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of firebase-database-dotnet
firebase-database-dotnet Key Features
firebase-database-dotnet Examples and Code Snippets
Community Discussions
Trending Discussions on firebase-database-dotnet
QUESTION
I am trying to do a get all with an ASP.NET Core project that uses this firebase library and I can't seem to return the children nested in an object. I have 3 classes: Route, Via & Waypoints(Serves as a bridge for JSON Deserialization).
...ANSWER
Answered 2021-Aug-23 at 12:22Thanks to Rena's suggestion, I figured out that the problem was located in my Waypoints bridging class that was missing a { get; set; }
Here is the change that was made to my class:
QUESTION
I'm making a chat app and I want to store only the latest 50 messages. I want to delete the 50th item when a new message arrives. How can I do that?
Checking the count of messages and deleting by calling a method each time from my app looks kinda inefficient. Is there any way to do it automatically? Any type of rules or something?
My app is written in C# using Xamarin.Forms. I'm using FirebaseDatabase.net library.
...ANSWER
Answered 2020-Oct-12 at 19:15There is no configuration for this. You will have to somehow maintain a count, check the count on each new child, and delete the oldest child if the count exceeds your threshold. If you don't want to write this code, you could look into using the RTDB Limit Child Nodes extension which contains some code that might do what you want.
QUESTION
I want to create user email keys instead of the auto-generated keys. The reason why i want to do this, is to be able to query for that particular email and get that user data instead of getting all users from the "Users" child data which is not convenient, especially if the amount of users will grow.
I'am using FirebaseDatabase.Net which is available as a nuget. It is a wrapper on top of Firebase Realtime Database REST API.
A new user gets added into the realtime database with auto-generated keys as shown below. If those keys were the user emails instead, maybe i can query the user email and get that particular email child data, like the code below:
...ANSWER
Answered 2020-Mar-19 at 19:58I eagerly waited for an answer, refreshing the page so many times. Luckily i found a way to do it.
To create an email key, first replace any characters like ". $ # [ ]" in your email string because Firebase does not support them. Or another way is to convert the string to byte array then to base64. The good thing is that base64 string alphabet does not have those characters, so it is safe to use it.
Then in the AddUser function, put the base64 email key child under the main child "User2". The main child can be of any name, im going to change it after this. The "PutAsync" will put the new user data inside that email child.
Please take note, the "User" as seen in the AddUser function parameter, is a class i defined that has user properties like firstname, lastname, email, country, phone and so on.
QUESTION
I tried to follow the instructions on how to set a real-time streaming code that would handle the changes made to a child as described here.
...ANSWER
Answered 2020-Feb-24 at 21:26If you add an observer on /dinosaurs
then any time something happens under dinosaurs
you get the whole JSON of /dinosaurs
. There is no way to only get the changes, even though most native Firebase SDK actually only synchronize the things that have changed on the wire.
If you want to get more granular data, consider storing that more granular data. For example, if you want to only process the delta in your client, consider storing only the delta in a separate node in your database. And then when you listen to just that node, you'll only get the updates and can process those.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install firebase-database-dotnet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page