如何使用FireSharp从Firebase获取所有数据

时间:2019-10-18 06:07:50

标签: c# firebase fire-sharp

我在firebase中有user_table,我想从user_table中获取所有节点数据作为列表。

我可以使用

获取所有数据
FirebaseResponse response = await client.GetTaskAsync("User_Table\");

,那么我无法将json数据序列化为对象

 FirebaseResponse response = await client.GetTaskAsync("User_Table\\");
 List<UserList> usr = (List<UserList>)JsonConvert.DeserializeObject(response.ToString(), (typeof(List<UserList>)));

1 个答案:

答案 0 :(得分:0)

您是否尝试过使用dictionaryforeach

您也可以尝试通过YouTube遵循本教程 https://m.youtube.com/watch?v=oeblTSuBjSo&t=1s