Пример #1
0
        private async Task Insert()
        {
            FirestoreDb         db          = FirestoreDb.Create(ProjectID);
            CollectionReference policlinics = db.Collection("policlinics");
            var clinics = await Clinics.GetPoliclinicsAsync();

            clinics.ForEach(async clinic =>
            {
                await policlinics.AddAsync(clinic);
            });
        }