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
Mark TaborPosted Sep 16, 2021, 4:27 PM
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
DhawanPosted Sep 16, 2021, 7:07 AM