Ejemplo n.º 1
0
 public Task Update(T model, string field, object?value) =>
 GetDocument(model).UpdateAsync(FieldPath.GetMappingName <T>(field), value ?? FieldValue.Delete);
Ejemplo n.º 2
0
 public void Update(T model, string field, object?value, ITransaction transaction)
 {
     transaction.Update(GetDocument(model), FieldPath.GetMappingName <T>(field), value ?? FieldValue.Delete);
 }
Ejemplo n.º 3
0
 public IObservable <ICollection <Bike> > ObserveBikesFromStation(Station station)
 => ObservableBikes(Bikes(station.CommunityId)
                    .WhereEqualsTo(FieldPath.GetMappingName <Bike>(nameof(Bike.StationId)), station.Id),
                    station.CommunityId);