【发布时间】:2020-03-29 12:20:02
【问题描述】:
我想在 firsestore 中创建用户名列表(hashmap 中的 hashmap)。
我不想在每次运行操作时都遍历参与者的数据。
HashMap innermap = new HashMap();
HashMap outmap= new HashMap();
DocumentReference documentReference =Signup2.Getdatabase(Context).Collection("teams").Document(userdata.GetString("teamcode", "0000"))
.Collection("workout").Document(position.GetString("workoutdateposition", ""));
innermap.Put("username", userdata.GetString("username", ""));
outmap.Put("participants", innermap);
documentReference.Set(outmap);
【问题讨论】:
标签: c# firebase google-cloud-firestore xamarin.android