Santosh Kumar

Santosh Kumar

  • NA
  • 126
  • 60.3k

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

Oct 17 2013 7:02 AM
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)