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

Realm models do not support file-scoped namespace

      What happened?

      The new source generator doesn't automatically implement IRealmObject when used with file-scoped namespace approach. With classic namespace syntax everything is good, may be related to #3130

      Repro steps

      1. Add new model with file-scoped namespace.
      2. Then add same model with classic namespace brackets.

      Version

      7

      What Atlas Services are you using?

      Atlas Device Sync

      What type of application is this?

      Xamarin

      Client OS and version

      Not relevant

      Code snippets

      namespace MyApp.Models;
      
      public partial class SomeObject : IRealmObject
      {
          public string SomeProperty { get; set; }
      }
      

      Stacktrace of the exception/crash you're getting

      No response

      Relevant log output

      No response

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: