Closed sledderGIT closed 3 weeks ago
➤ PM Bot commented:
Jira ticket: RNET-1163
How do you open the Realm instance? Particularly, how does the config look like?
public async Task<Realm> GetRealmInstance(string id)
{
return await Realm.GetInstanceAsync(GetRealmConfig(id));
}
public RealmConfiguration GetRealmConfig(string id)
{
return new RealmConfiguration(id)
{
SchemaVersion = RealmVersion,
ShouldDeleteIfMigrationNeeded = true
};
}
Nothing extrodinary I would say :)
Are the models that you use and the code that opens the Realm in the same assembly?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
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')
Repro steps
RealmInstance.All<TripModel>().Count();
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