Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-949

Possibility to reset an EmbeddedObject

      Problem

      Im currently working with Automapper in my Project to Map from an DTO to a RealmObject that also contains an EmbeddedObject.
      The problem is that Automapper gets the instance of the nested Object, maps it's Properties and then tries to set the exact same instance back to the field via the setter.
      This causes Realm to throw an
      Realms.Exceptions.RealmException Can't link to an embedded object that is already managed
      event though the RealmObject and the nested Object are the same instances. Would it be possible for realm to check if the EmbeddedObject is getting reassigned to the same Parent Instance and so no new link has to be established ?

      Solution

      No response

      Alternatives

      No response

      How important is this improvement for you?

      I would like to have it but have a workaround

      Feature would mainly be used with

      Atlas Device Sync

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: