Search Results for

    Show / Hide Table of Contents

    Delegate RealmConfiguration.MigrationCallbackDelegate

    In order to handle manual migrations, you need to supply a migration callback to your RealmConfiguration. It will be called with a Migration instance containing the pre- and the post-migration Realm. You should make sure that the NewRealm property on it contains a database that is up to date when returning. The oldSchemaVersion parameter will tell you which SchemaVersion the user is migrating from. They should always be migrating to the current SchemaVersion.

    Namespace: Realms
    Assembly: Realm.dll
    Syntax
    public delegate void MigrationCallbackDelegate(Migration migration, ulong oldSchemaVersion);
    Parameters
    Type Name Description
    Migration migration

    The Migration instance, containing information about the old and the new Realm.

    UInt64 oldSchemaVersion

    An unsigned long value indicating the SchemaVersion of the old Realm.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2020 Realm
    Generated by DocFX