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

Getting exception The class TripModel is not in the limited set of classes for this realm

      What happened?

      Just started to get an exception
      System.ArgumentException: The class TripModel is not in the limited set of classes for this realm (Parameter 'T')

      using Realms;
      
      namespace CTeleport.Mobile.Core.RealmStore.Trips;
      
      public class TripModel: RealmObject
      {
          public TripModel()
          {
          }
          
          [Indexed]
          public DateTimeOffset EndingDate { get; set; }
      
          [Indexed]
          public DateTimeOffset CreatedAt { get; set; }
          
          [Indexed]
          public DateTimeOffset UpdatedAt { get; set; }
          
          [PrimaryKey]
          public string Id { get; set; }
          public string TravelerName { get; set; }
          public IList<BookingModel> Bookings { get; }
      }
      

      Repro steps

      1. RealmInstance.All<TripModel>().Count();
      2. System.ArgumentException: The class TripModel is not in the limited set of classes for this realm (Parameter 'T')

      Version

      .NET 8

      What Atlas Services are you using?

      Local Database only

      What type of application is this?

      Xamarin

      Client OS and version

      iOS simulator 17.2 Realm 12.2

      Code snippets

      No response

      Stacktrace of the exception/crash you're getting

      No response

      Relevant log output

      No response

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

              Created:
              Updated: