Class Migration
This class is given to you when you migrate your database from one version to another. It contains two properties: OldRealm and NewRealm. The NewRealm is the one you should make sure is up to date. It will contain models corresponding to the configuration you've supplied. You can read from the OldRealm and access properties that have been removed from the classes by using the dynamic API.
Namespace: Realms
Assembly: Realm.dll
Syntax
public class Migration : object
Properties
| Improve this Doc View SourceNewRealm
Gets the Realm that you should modify and make sure is up to date.
Declaration
public Realm NewRealm { get; }
Property Value
Type | Description |
---|---|
Realm | The Realm that will be saved after the migration. |
OldRealm
Gets the Realm as it was before migrating. Use the dynamic API to access it.
Declaration
public Realm OldRealm { get; }
Property Value
Type | Description |
---|---|
Realm | The Realm before the migration. |