I have the following three classes for a many-to-many relationship between Employee and Training:
public class Employee {
public Guid EmployeeId { get; set; }
public string Name { get; set; }
}
public class EmployeeTraining {
public Guid EmployeeId { get; set; }
public Guid TrainingId
public bool Attended { get; set; }
}
public class Training {
public Guid TrainingId { get; set; }
public string Name { get; set; }
}
The data grid data source is an OData API. These OData URLs work:
https://myodataAPI/Employee
https://myodataAPI/Employee?$expand=EmployeeTraining
Expanding it one more time like this does not:
https://myodataAPI/Employee?$expand=EmployeeTraining
($expand=Training)
Is that a limitation of the control or am I doing something wrong?
My goal is to have a list of Employees (Employee.Name) with a detail template that shows each training the employee registered for (Training.Name) and whether they actually attended the training (EmployeeTraining.Attended)