Hey guys, first time posting on here so I hope I’m in the right place…
So I’m trying to set up a backlink on this Metal RealmObject using Realm Sync.
public class Metal : RealmObject
{
[PrimaryKey]
[MapTo("_id")]
public ObjectId Id { get; set; } = ObjectId.GenerateNewId();
[MapTo("Name")]
[Required]
public string Name { get; set; }
[MapTo("Bare")]
[Backlink(nameof(Bara.TipMetal))]
public IQueryable<Bara> Bare { get; }
public class Bara : RealmObject
{
[PrimaryKey]
[MapTo("_id")]
public ObjectId Id { get; set; } = ObjectId.GenerateNewId();
[MapTo("Name")]
[Required]
public string Name { get; set; }
[MapTo("TipMetal")]
public Metal TipMetal { get; set; }
}
I’m assigning Bara.Tipmetal in the Bara constructor, it works, shows up in the database.
My problem is I can’t find out how to assign it to IQueryable, this doesn’t even show up in my schema.