2
Answers

How to create the complex type of list type inside another c

Santosh Kumar

Santosh Kumar

11y
1.1k
1
Hi Every one,

I am struggling with an issue in model first approach, their will be main complex type which contains Name,Address,Email,Phoneno which is the parent class. And I should create second complex which will be child class having the first complex type with different name and list of first complex type.


Class Employee
{
public string Name{get;set;}
public string Address {get;set;}
public string Email{get;set;}
public string Phoneno {get;set;}

}

Class Organisation:Employee
{
public Employee Manager{get;set;}
public List<Employee> Direct_Roles{get;set;}
}



I want to create a Complex type in the above format in model browser.
Answers (2)