This declaration is not creating the Parent column in de LookupItem table. What’s missing?
connection.DropAndCreateTable<MyClass>();
public class Folder
{
[PrimaryKey]
public long Id { get; set; }
[Reference]
public Folder Parent {get;set;}
}
Please see docs on Reference Conventions. Property references are for defining properties that are populated from an external table, i.e. they’re not stored with the existing table.
But i want to store a hierarchy (i changed the example to a Folder / Parent structure). You’re saying that this is currently not supported? Any alternative?