Interface IAsymmetricObject
Base interface for any asymmetric object that can be persisted in a Realm.
Inherited Members
Namespace: Realms
Assembly: Realm.dll
Syntax
public interface IAsymmetricObject : IRealmObjectBase
Remarks
The benefit of using IAsymmetricObject is that the performance of each sync operation is much higher.
The drawback is that an IAsymmetricObject is synced unidirectionally, so it cannot be queried.
You should use this base when you have a write-heavy use case.
If, instead you want to persist an object that you can also query against, use IRealmObject instead.
This interface will be implemented automatically by the Realm source generator as long as your
model class is declared as partial
.
Examples
public partial class SensorReading : IAsymmetricObject
{
public DateTimeOffset TimeStamp { get; set; } = DateTimeOffset.UtcNow;
public double Value { get; set; }
}