Retrieve Child Collections
Configuring **one-to-many** relationships in Umbraco UI Builder, the backoffice UI builder for Umbraco.
Models Representation
[TableName("Students")]
[PrimaryKey("Id")]
public class Student
{
[PrimaryKeyColumn]
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
}[TableName("StudentProjects")]
[PrimaryKey("Id")]
public class StudentProject
{
[PrimaryKeyColumn]
public int Id { get; set; }
public string Name { get; set; }
public int StudentId { get; set; }
}Child Repositories
Last updated
Was this helpful?