I use firebase.database to make query from Firebase in c#, i want to make like Where in linq But i didn't find any extension method that would help. I have CallHistory table has many properties like Rate,Id,Status and make index in Rate property this is json of callhistory
"CallHistory" : {
"0798af9c-180c-4d67-a58d-a47043f7e36f" : {
"CreatedDate" : "0001-01-01T00:00:00Z",
"Id" : "0798af9c-180c-4d67-a58d-a47043f7e36f",
"IsActive" : false,
"IsDeleted" : false,
"Latitude" : 1.5,
"ModifiedDate" : "0001-01-01T00:00:00Z",
"Rate" : 5,
"RecipientId" : "00000000-0000-0000-0000-000000000000",
"Status" : 2,
"StatusDateTime" : "0001-01-01T00:00:00Z",
"longitude" : 1.2
},
"151c7072-0b17-44aa-a834-99c265ef897f" : {
"CreatedDate" : "0001-01-01T00:00:00Z",
"Id" : "151c7072-0b17-44aa-a834-99c265ef897f",
"IsActive" : false,
"IsDeleted" : false,
"Latitude" : 1.5,
"ModifiedDate" : "0001-01-01T00:00:00Z",
"Rate" : 4,
"RecipientId" : "00000000-0000-0000-0000-000000000000",
"Status" : 1,
"StatusDateTime" : "0001-01-01T00:00:00Z",
"longitude" : 1.2
}
}
and write this code
using Firebase.Database;
using Firebase.Database.Query;
var firebase = new FirebaseClient("https://sound-project-42ead.firebaseio.com/");
var calls = await firebase
.Child("CallHistory").OrderBy("Rate").EqualTo("4")
.OnceAsync<CallHistory>();
But it doesn;t return any data. With search i found that there are function called OrderByChild() , But i did'nt find this method anymore in firebase.database.query. Is There any other dll can i install it to find orderbychild().