Add support for Migration.FindInNewRealm

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ?
    • 3600
    • Needed
    • Hide
      We can update https://www.mongodb.com/docs/atlas/device-sdks/sdk/dotnet/model-data/change-an-object-model/#migration-functions - instead of using `.ElementAt(i)`, we could replace the for loop with:

      foreach (var oldPerson in migration.OldRealm.DynamicApi.All("Person"))
      {
          var newPerson = migration.FindInNewRealm<Person>(oldPerson);
      }
      Show
      We can update https://www.mongodb.com/docs/atlas/device-sdks/sdk/dotnet/model-data/change-an-object-model/#migration-functions - instead of using `.ElementAt(i)`, we could replace the for loop with: foreach (var oldPerson in migration.OldRealm.DynamicApi.All("Person")) {     var newPerson = migration.FindInNewRealm<Person>(oldPerson); }

            Assignee:
            Nikola Irinchev
            Reporter:
            Unito Sync Bot
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Archived: