C# Application to Firebase Database - Retrieving Updated Data

A question that is often asked evolves around in one of the previous posts where we are taken through how to delete data within the Firebase database. In the post we go through how to delete all data within the database. This Can be a useful feature if you are wanting to carry out an entire wipe and clear out everything. But in the real world it wouldnt make much sense. And so in this post we are quickly going through the deletion of only specific parent and child nodes.

Be sure to have a read up on some of the other posts we have as you may find them of extreme use. Especially if wanting to remove those random base-64 keys being generated when inserting and updating data. Also find out how to retrieve specific children nodes.The list for which can be found below:

Inserting data in to the Firebase database
Updating data in the Firebase database
Deleting data in Firebase database
Retrieving all data from the Firebase database
Inserting Individual parent and child nodes in to the Firebase database
Removing random base-64 keys from the parent nodes within the Firebase database
Retrieving Individual parent and child nodes from the Firebase database
Authenticating Your C# Application with the Firebase Database

When starting off this project our objective was to find a way to remove only specific parent and/or child nodes and leave data that we are still in need of. In this example our database is already filled with example data to help bring about a better understanding. A sample of what is being stored currently within the database can be seen below





Looking at the above we can see four entries under Users, each of these entries having their unique identifier, name, surname and title fields. This post will go through the way in which we can remove for example the last entry from the above which is Mr George Lucas. The code we will be making use of in this example will be exactly the same as that seen in the other post if you havent yet read it you may do so by Clicking Here. Seen in that article we are making a delete request to the following URL seen below



The URL points to the entire project hence why when the delete request is made the entire contents of the database project is removed. If we were wanting to delete only the contents of the fourth entry the URL would need to be changed to correspond this resulting in it looking like the below instead.



The above would then delete all contents of parent named 4 which in this case is the unique identifier for Mr George Lucas and holds all of his information. You could take this example a step further and delete only his surname resulting only in Mr Lucas within the database. An example of how this would look can be seen in the below



Removing a child node isnt something that one would want to do, however updating a child node would and this would work in a very similar way which will be covered in one of the next posts. Please be sure to check out the other content on the site and if you do have any requests please do let us know. Leave a comment below letting us know how you found this one and how you got on with it.



Inserting data in to the Firebase database
Updating data in the Firebase database
Deleting data in Firebase database
Retrieving all data from the Firebase database
Inserting Individual parent and child nodes in to the Firebase database
Removing random base-64 keys from the parent nodes within the Firebase database
Retrieving Individual parent and child nodes from the Firebase database
Authenticating Your C# Application with the Firebase Database




"If you ever talk to a great programmer, you will find they know their tools like an artist knows their paintbrushes."
-B.Gates-


"Computers themselves, and software yet to be developed, will revolutionize the way we learn."
-S.Jobs-

Authenticating Your C# Application with the Firebase Database

In todays post we will be going through one of the ways we can have some form of basic authentication implemented in to any project. This form of authentication can be applied wherever you want, whether it be you are Posting, Patching, Deleting and more. Keep your project safe and allow only those you want to have permission to access data within your database.


C# Application to Firebase Database - Retrieving The Entire JSON Tree

In todays article we will go through how to retrieve all data from Googles Firebase database using a C# application, this article will not however go through the retrieving specific or individual data but rather we will be returning the entire Json tree. Again as explained in all posts and articles before there is no database authentication being used in this example.


C# Application to Firebase Database - Retrieving Updated Data

In this post we will be going through the way in which you can go about retrieving updated data in Googles Firebase database using a C# application. Retrieving data has been an extremely large request and so its finally here. Please note that if you are wanting to retrieve data that is being posted or inserted in to Firebase the code will need some tweaking and will need to have some changes made. We will be going through this in the next article.