I have a calls with this defination
public class Hospital
{
public List
public string Name { get; set; }
public Hospital()
{
patients = new List
}
}
How to create patient instance inside hospital instace patients Field by using add mthod in program.cs class

Dhawan96 reputationPosted Sep 16, 2021, 3:07 AM EDT
Mark TaborRank #914 · 2.3K reputationPosted Sep 16, 2021, 12:27 PM EDT
Dhawan its simple I have one above client in whcih I have Patient property as List and its navigation property , patient itself is a class , now I want to create list of instances of patient in program.cs class