Show / Hide Table of Contents

    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.

    Inheritance
    Object
    Migration
    Namespace: Realms
    Assembly: Realm.dll
    Syntax
    public class Migration

    Properties

    | Improve this Doc View Source

    NewRealm

    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.

    | Improve this Doc View Source

    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.

    See Also

    See more in the migrations section in the documentation.
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Realm
    Generated by DocFX