I have the following collection in my database:
public class Customer
{
public int Id { get; set; }
public string Name { get; set; }
public List<Medication> Medications { get; set; }
}
public class Medication
{
public int Id { get; set; }
public string Name { get; set; }
}
However when I bind the Customer data source to my datagridview, I can not get the list of medications, what can I do to get that list?