4 ms·
The C# documentation is quite clear: https://realm.io/docs/xamarin/latest/ https://realm.io/docs/xamarin/latest/ var puppies = realm.All<Dog>().Where(d => d.
by mjewkes 10y ago
The C# documentation is quite clear:
https://realm.io/docs/xamarin/latest/ https://realm.io/docs/xamarin/latest/
var puppies = realm.All<Dog>().Where(d => d.Age < 2);
The LINQ integration is appreciated.
// Update and persist objects with a thread-safe transaction
realm.Write(() =>
{
realm.Add(new Dog { Name = "Rex", Age = 1 });
});
// Queries are updated in realtime
puppies.Count(); // => 1
I'm assuming that "updated in realtime" means "realm.Write is a blocking operation", correct?
- brmunk 10y agoAbsolutely right. Only one writer at a time (locally), but writers don't block readers of which you can have multiple due to the MVCC design.