Par*_*tel 4 .net c# firebase firebase-realtime-database
FirebaseClient firebaseClient = new FirebaseClient("Your FireBase Database URL");
var result = await firebaseClient.Child("Node").OnceAsync<RelatedModel>();
Run Code Online (Sandbox Code Playgroud)
如何使用此代码获取 NodeId(与图像相同)?

要获得以下id尝试:
FirebaseClient firebaseClient = new FirebaseClient("https://node.firebaseio.com/");
var result = await firebaseClient.Child("UsersInfo").OrderByKey().OnceAsync<RelatedModel>();
foreach (var res in results)
{
Console.WriteLine($"{res.Key}");
}
Run Code Online (Sandbox Code Playgroud)
首先获取 firebase 数据库的实例,然后添加对 node 的引用UsersInfo。然后使用foreach你在里面迭代results并检索id使用res.Key
| 归档时间: |
|
| 查看次数: |
117 次 |
| 最近记录: |