HI guys.
I have a .net maui project in which I want to implement mongodb atlas device sync: my data model is composed by two classes
public partial class UserListDB : IRealmObject
{
[PrimaryKey]
public int Id { get; set; }
public string Name { get; set; }
public string UserName { get; set; }
public string EmailAddress { get; set; }
public IList Roles { get; }
}
public partial class UserListRoleDB : IRealmObject
{
[PrimaryKey]
public int RoleId { get; set; }
public string RoleName { get; set; }
public int UserId { get; set; }
}
My realm app (the one created from the web mongo dashboard) has the developer mode on, because I want schema and db collection to be generated from my data model.
When I call bellow line in my code some time we have got “The class UserListDB is not in the limited set of classes for this realm (Parameter ‘T’)”. Error var realm = RealmService.GetRealm();
var data = realm.All();
May you please provide some suggestions?