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